Use int64 time stamp when storing metadata to the HTTP cache.
[chromium-blink-merge.git] / ui / views / examples / link_example.cc
blob3795c8c9832436c269286e77f995bd27f26e3fd6
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/views/examples/link_example.h"
7 #include "base/strings/utf_string_conversions.h"
8 #include "ui/views/controls/link.h"
9 #include "ui/views/layout/fill_layout.h"
10 #include "ui/views/view.h"
12 namespace views {
13 namespace examples {
15 LinkExample::LinkExample() : ExampleBase("Link") {
18 LinkExample::~LinkExample() {
21 void LinkExample::CreateExampleView(View* container) {
22 link_ = new Link(base::ASCIIToUTF16("Click me!"));
23 link_->set_listener(this);
25 container->SetLayoutManager(new FillLayout);
26 container->AddChildView(link_);
29 void LinkExample::LinkClicked(Link* source, int event_flags) {
30 PrintStatus("Link clicked");
33 } // namespace examples
34 } // namespace views