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

Side by Side Diff: mojo/examples/window_manager/debug_panel.h

Issue 489493004: Update view manager to support content handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blah to the blizzah Created 6 years, 3 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 | « mojo/examples/png_viewer/png_viewer.cc ('k') | mojo/examples/window_manager/debug_panel.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_ 5 #ifndef MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
6 #define MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_ 6 #define MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "mojo/services/public/interfaces/navigation/navigation.mojom.h" 10 #include "mojo/services/public/interfaces/navigation/navigation.mojom.h"
11 #include "ui/views/controls/button/button.h" 11 #include "ui/views/controls/button/button.h"
12 #include "ui/views/layout/layout_manager.h" 12 #include "ui/views/layout/layout_manager.h"
13 #include "ui/views/widget/widget_delegate.h" 13 #include "ui/views/widget/widget_delegate.h"
14 14
15 namespace views { 15 namespace views {
16 class Label; 16 class Label;
17 class RadioButton; 17 class RadioButton;
18 } 18 }
19 19
20 namespace mojo { 20 namespace mojo {
21 21
22 class View; 22 class View;
23 23
24 namespace examples { 24 namespace examples {
25 25
26 namespace { 26 namespace {
27 const SkColor kColors[] = { SK_ColorYELLOW,
28 SK_ColorRED,
29 SK_ColorGREEN,
30 SK_ColorMAGENTA };
31 } 27 }
32 28
33 // A panel of controls intended to demonstrate the functionality of the window 29 // A panel of controls intended to demonstrate the functionality of the window
34 // manager. 30 // manager.
35 class DebugPanel : public views::LayoutManager, public views::ButtonListener { 31 class DebugPanel : public views::LayoutManager, public views::ButtonListener {
36 public: 32 public:
37 class Delegate { 33 class Delegate {
38 public: 34 public:
39 virtual void CloseTopWindow() = 0; 35 virtual void CloseTopWindow() = 0;
40 virtual void RequestNavigate( 36 virtual void RequestNavigate(
(...skipping 30 matching lines...) Expand all
71 views::Button* close_last_; 67 views::Button* close_last_;
72 views::Button* cross_app_; 68 views::Button* cross_app_;
73 69
74 DISALLOW_COPY_AND_ASSIGN(DebugPanel); 70 DISALLOW_COPY_AND_ASSIGN(DebugPanel);
75 }; 71 };
76 72
77 } // examples 73 } // examples
78 } // mojo 74 } // mojo
79 75
80 #endif // MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_ 76 #endif // MOJO_EXAMPLES_WINDOW_MANAGER_DEBUG_PANEL_H_
OLDNEW
« no previous file with comments | « mojo/examples/png_viewer/png_viewer.cc ('k') | mojo/examples/window_manager/debug_panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698