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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months 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
« no previous file with comments | « ui/views/examples/scroll_view_example.cc ('k') | ui/views/examples/tabbed_pane_example.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TABBED_PANE_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_TABBED_PANE_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_TABBED_PANE_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_TABBED_PANE_EXAMPLE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 public TabbedPaneListener { 24 public TabbedPaneListener {
25 public: 25 public:
26 TabbedPaneExample(); 26 TabbedPaneExample();
27 virtual ~TabbedPaneExample(); 27 virtual ~TabbedPaneExample();
28 28
29 // ExampleBase: 29 // ExampleBase:
30 virtual void CreateExampleView(View* container) OVERRIDE; 30 virtual void CreateExampleView(View* container) OVERRIDE;
31 31
32 private: 32 private:
33 // ButtonListener: 33 // ButtonListener:
34 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; 34 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
35 35
36 // TabbedPaneListener: 36 // TabbedPaneListener:
37 virtual void TabSelectedAt(int index) OVERRIDE; 37 virtual void TabSelectedAt(int index) OVERRIDE;
38 38
39 // Print the status of the tab in the status area. 39 // Print the status of the tab in the status area.
40 void PrintStatus(); 40 void PrintStatus();
41 41
42 void AddButton(const std::string& label); 42 void AddButton(const std::string& label);
43 43
44 // The tabbed pane to be tested. 44 // The tabbed pane to be tested.
45 TabbedPane* tabbed_pane_; 45 TabbedPane* tabbed_pane_;
46 46
47 // Control buttons to add, remove or select tabs. 47 // Control buttons to add, remove or select tabs.
48 Button* add_; 48 Button* add_;
49 Button* add_at_; 49 Button* add_at_;
50 Button* remove_at_; 50 Button* remove_at_;
51 Button* select_at_; 51 Button* select_at_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(TabbedPaneExample); 53 DISALLOW_COPY_AND_ASSIGN(TabbedPaneExample);
54 }; 54 };
55 55
56 } // namespace examples 56 } // namespace examples
57 } // namespace views 57 } // namespace views
58 58
59 #endif // UI_VIEWS_EXAMPLES_TABBED_PANE_EXAMPLE_H_ 59 #endif // UI_VIEWS_EXAMPLES_TABBED_PANE_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/examples/scroll_view_example.cc ('k') | ui/views/examples/tabbed_pane_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698