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

Side by Side Diff: ui/views/examples/bubble_example.h

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 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/examples/example_base.h" 10 #include "ui/views/examples/example_base.h"
11 11
12 namespace views {
12 namespace examples { 13 namespace examples {
13 14
14 // A Bubble example. 15 // A Bubble example.
15 class BubbleExample : public ExampleBase, 16 class BubbleExample : public ExampleBase, public ButtonListener {
16 public views::ButtonListener {
17 public: 17 public:
18 explicit BubbleExample(ExamplesMain* main); 18 BubbleExample();
19 virtual ~BubbleExample(); 19 virtual ~BubbleExample();
20 20
21 // Overridden from ExampleBase. 21 // Overridden from ExampleBase.
22 virtual void CreateExampleView(views::View* container) OVERRIDE; 22 virtual void CreateExampleView(View* container) OVERRIDE;
23 23
24 private: 24 private:
25 virtual void ButtonPressed(views::Button* sender, 25 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE;
26 const views::Event& event) OVERRIDE;
27 26
28 views::Button* round_; 27 Button* round_;
29 views::Button* arrow_; 28 Button* arrow_;
30 views::Button* fade_in_; 29 Button* fade_in_;
31 views::Button* fade_out_; 30 Button* fade_out_;
32 31
33 DISALLOW_COPY_AND_ASSIGN(BubbleExample); 32 DISALLOW_COPY_AND_ASSIGN(BubbleExample);
34 }; 33 };
35 34
36 } // namespace examples 35 } // namespace examples
36 } // namespace views
37 37
38 #endif // UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_ 38 #endif // UI_VIEWS_EXAMPLES_BUBBLE_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc ('k') | ui/views/examples/bubble_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698