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

Unified Diff: ui/views/examples/link_example.cc

Issue 8687013: Get the examples to run in aura_shell. (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 | « ui/views/examples/link_example.h ('k') | ui/views/examples/menu_example.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/link_example.cc
===================================================================
--- ui/views/examples/link_example.cc (revision 111815)
+++ ui/views/examples/link_example.cc (working copy)
@@ -9,25 +9,26 @@
#include "views/controls/link.h"
#include "views/view.h"
+namespace views {
namespace examples {
-LinkExample::LinkExample(ExamplesMain* main)
- : ExampleBase(main, "Link") {
+LinkExample::LinkExample() : ExampleBase("Link") {
}
LinkExample::~LinkExample() {
}
-void LinkExample::CreateExampleView(views::View* container) {
- link_ = new views::Link(ASCIIToUTF16("Click me!"));
+void LinkExample::CreateExampleView(View* container) {
+ link_ = new Link(ASCIIToUTF16("Click me!"));
link_->set_listener(this);
- container->SetLayoutManager(new views::FillLayout);
+ container->SetLayoutManager(new FillLayout);
container->AddChildView(link_);
}
-void LinkExample::LinkClicked(views::Link* source, int event_flags) {
+void LinkExample::LinkClicked(Link* source, int event_flags) {
PrintStatus("Link clicked");
}
} // namespace examples
+} // namespace views
« no previous file with comments | « ui/views/examples/link_example.h ('k') | ui/views/examples/menu_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698