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

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

Issue 549273002: Various mojom cleanup from ContentHandler changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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
« no previous file with comments | « mojo/examples/media_viewer/media_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"
(...skipping 15 matching lines...) Expand all
26 namespace { 26 namespace {
27 } 27 }
28 28
29 // 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
30 // manager. 30 // manager.
31 class DebugPanel : public views::LayoutManager, public views::ButtonListener { 31 class DebugPanel : public views::LayoutManager, public views::ButtonListener {
32 public: 32 public:
33 class Delegate { 33 class Delegate {
34 public: 34 public:
35 virtual void CloseTopWindow() = 0; 35 virtual void CloseTopWindow() = 0;
36 virtual void RequestNavigate( 36 virtual void RequestNavigate(uint32 source_view_id,
37 uint32 source_view_id, Target target, 37 Target target,
38 NavigationDetailsPtr nav_details) = 0; 38 URLRequestPtr url_request) = 0;
39
39 protected: 40 protected:
40 virtual ~Delegate(){} 41 virtual ~Delegate(){}
41 }; 42 };
42 43
43 DebugPanel(Delegate* delegate, View* view); 44 DebugPanel(Delegate* delegate, View* view);
44 virtual ~DebugPanel(); 45 virtual ~DebugPanel();
45 46
46 Target navigation_target() const; 47 Target navigation_target() const;
47 48
48 private: 49 private:
(...skipping 17 matching lines...) Expand all
66 views::Button* close_last_; 67 views::Button* close_last_;
67 views::Button* cross_app_; 68 views::Button* cross_app_;
68 69
69 DISALLOW_COPY_AND_ASSIGN(DebugPanel); 70 DISALLOW_COPY_AND_ASSIGN(DebugPanel);
70 }; 71 };
71 72
72 } // examples 73 } // examples
73 } // mojo 74 } // mojo
74 75
75 #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/media_viewer/media_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