Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: views/examples/link_example.cc

Issue 8555013: views: Move examples/ directory to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/examples/link_example.h ('k') | views/examples/menu_example.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/examples/link_example.cc
diff --git a/views/examples/link_example.cc b/views/examples/link_example.cc
deleted file mode 100644
index 0a503ea50ee05f1f69db7ceb4903fbca9ea0f7d3..0000000000000000000000000000000000000000
--- a/views/examples/link_example.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "views/examples/link_example.h"
-
-#include "base/utf_string_conversions.h"
-#include "views/controls/link.h"
-#include "views/layout/fill_layout.h"
-#include "views/view.h"
-
-namespace examples {
-
-LinkExample::LinkExample(ExamplesMain* main)
- : ExampleBase(main, "Link") {
-}
-
-LinkExample::~LinkExample() {
-}
-
-void LinkExample::CreateExampleView(views::View* container) {
- link_ = new views::Link(ASCIIToUTF16("Click me!"));
- link_->set_listener(this);
-
- container->SetLayoutManager(new views::FillLayout);
- container->AddChildView(link_);
-}
-
-void LinkExample::LinkClicked(views::Link* source, int event_flags) {
- PrintStatus("Link clicked");
-}
-
-} // namespace examples
« no previous file with comments | « views/examples/link_example.h ('k') | views/examples/menu_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698