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

Side by Side Diff: components/mus/view_tree_host_impl.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
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_VIEW_TREE_HOST_IMPL_H_ 5 #ifndef COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_
6 #define COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_ 6 #define COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/mus/display_manager.h" 9 #include "components/mus/display_manager.h"
10 #include "components/mus/event_dispatcher.h" 10 #include "components/mus/event_dispatcher.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void AddAccelerator(uint32_t id, 89 void AddAccelerator(uint32_t id,
90 mojo::KeyboardCode keyboard_code, 90 mojo::KeyboardCode keyboard_code,
91 mojo::EventFlags flags) override; 91 mojo::EventFlags flags) override;
92 void RemoveAccelerator(uint32_t id) override; 92 void RemoveAccelerator(uint32_t id) override;
93 93
94 private: 94 private:
95 void OnClientClosed(); 95 void OnClientClosed();
96 96
97 // DisplayManagerDelegate: 97 // DisplayManagerDelegate:
98 ServerView* GetRootView() override; 98 ServerView* GetRootView() override;
99 void OnEvent(mojo::EventPtr event) override; 99 void OnEvent(ViewId id, mojo::EventPtr event) override;
100 void OnDisplayClosed() override; 100 void OnDisplayClosed() override;
101 void OnViewportMetricsChanged( 101 void OnViewportMetricsChanged(
102 const mojo::ViewportMetrics& old_metrics, 102 const mojo::ViewportMetrics& old_metrics,
103 const mojo::ViewportMetrics& new_metrics) override; 103 const mojo::ViewportMetrics& new_metrics) override;
104 104
105 // FocusControllerDelegate: 105 // FocusControllerDelegate:
106 void OnFocusChanged(ServerView* old_focused_view, 106 void OnFocusChanged(ServerView* old_focused_view,
107 ServerView* new_focused_view) override; 107 ServerView* new_focused_view) override;
108 108
109 ViewTreeHostDelegate* delegate_; 109 ViewTreeHostDelegate* delegate_;
110 ConnectionManager* const connection_manager_; 110 ConnectionManager* const connection_manager_;
111 mojo::ViewTreeHostClientPtr client_; 111 mojo::ViewTreeHostClientPtr client_;
112 EventDispatcher event_dispatcher_; 112 EventDispatcher event_dispatcher_;
113 scoped_ptr<ServerView> root_; 113 scoped_ptr<ServerView> root_;
114 scoped_ptr<DisplayManager> display_manager_; 114 scoped_ptr<DisplayManager> display_manager_;
115 scoped_ptr<FocusController> focus_controller_; 115 scoped_ptr<FocusController> focus_controller_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostImpl); 117 DISALLOW_COPY_AND_ASSIGN(ViewTreeHostImpl);
118 }; 118 };
119 119
120 } // namespace mus 120 } // namespace mus
121 121
122 #endif // COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_ 122 #endif // COMPONENTS_MUS_VIEW_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/surfaces/top_level_display_client.cc ('k') | components/mus/view_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698