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

Side by Side Diff: components/mus/display_manager_delegate.h

Issue 1328953003: Mandoline: Support transforms and clipping of OOPIFs and events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO Created 5 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 | « components/mus/display_manager.cc ('k') | components/mus/server_view.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_ 5 #ifndef COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_
6 #define COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_ 6 #define COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_
7 7
8 #include "components/mus/ids.h"
8 #include "components/mus/public/interfaces/view_tree.mojom.h" 9 #include "components/mus/public/interfaces/view_tree.mojom.h"
9 10
10 namespace mus { 11 namespace mus {
11 12
12 class ServerView; 13 class ServerView;
13 14
14 // A DisplayManagerDelegate an interface to be implemented by an object that 15 // A DisplayManagerDelegate an interface to be implemented by an object that
15 // manages the lifetime of a DisplayManager, forwards events to the appropriate 16 // manages the lifetime of a DisplayManager, forwards events to the appropriate
16 // views, and responses to changes in viewport size. 17 // views, and responses to changes in viewport size.
17 class DisplayManagerDelegate { 18 class DisplayManagerDelegate {
18 public: 19 public:
19 // Returns the root view of this display. 20 // Returns the root view of this display.
20 virtual ServerView* GetRootView() = 0; 21 virtual ServerView* GetRootView() = 0;
21 22
22 // Called when the window managed by the DisplayManager is closed. 23 // Called when the window managed by the DisplayManager is closed.
23 virtual void OnDisplayClosed() = 0; 24 virtual void OnDisplayClosed() = 0;
24 25
25 // Called when an event arrives. 26 // Called when an event arrives.
26 virtual void OnEvent(mojo::EventPtr event) = 0; 27 virtual void OnEvent(ViewId id, mojo::EventPtr event) = 0;
27 28
28 // Signals that the metrics of this display's viewport has changed. 29 // Signals that the metrics of this display's viewport has changed.
29 virtual void OnViewportMetricsChanged( 30 virtual void OnViewportMetricsChanged(
30 const mojo::ViewportMetrics& old_metrics, 31 const mojo::ViewportMetrics& old_metrics,
31 const mojo::ViewportMetrics& new_metrics) = 0; 32 const mojo::ViewportMetrics& new_metrics) = 0;
32 33
33 protected: 34 protected:
34 virtual ~DisplayManagerDelegate() {} 35 virtual ~DisplayManagerDelegate() {}
35 }; 36 };
36 37
37 } // namespace mus 38 } // namespace mus
38 39
39 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_ 40 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/mus/display_manager.cc ('k') | components/mus/server_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698