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

Side by Side Diff: components/mus/display_manager.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: Rebase works! 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 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 COMPONENTS_MUS_DISPLAY_MANAGER_H_ 5 #ifndef COMPONENTS_MUS_DISPLAY_MANAGER_H_
6 #define COMPONENTS_MUS_DISPLAY_MANAGER_H_ 6 #define COMPONENTS_MUS_DISPLAY_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void SetTitle(const base::string16& title) override; 103 void SetTitle(const base::string16& title) override;
104 const mojo::ViewportMetrics& GetViewportMetrics() override; 104 const mojo::ViewportMetrics& GetViewportMetrics() override;
105 void UpdateTextInputState(const ui::TextInputState& state) override; 105 void UpdateTextInputState(const ui::TextInputState& state) override;
106 void SetImeVisibility(bool visible) override; 106 void SetImeVisibility(bool visible) override;
107 107
108 private: 108 private:
109 void WantToDraw(); 109 void WantToDraw();
110 void Draw(); 110 void Draw();
111 void DidDraw(); 111 void DidDraw();
112 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio); 112 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio);
113 scoped_ptr<cc::CompositorFrame> GenerateCompositorFrame();
114 const cc::CompositorFrame* GetLastCompositorFrame() const;
113 115
114 // ui::PlatformWindowDelegate: 116 // ui::PlatformWindowDelegate:
115 void OnBoundsChanged(const gfx::Rect& new_bounds) override; 117 void OnBoundsChanged(const gfx::Rect& new_bounds) override;
116 void OnDamageRect(const gfx::Rect& damaged_region) override; 118 void OnDamageRect(const gfx::Rect& damaged_region) override;
117 void DispatchEvent(ui::Event* event) override; 119 void DispatchEvent(ui::Event* event) override;
118 void OnCloseRequest() override; 120 void OnCloseRequest() override;
119 void OnClosed() override; 121 void OnClosed() override;
120 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 122 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
121 void OnLostCapture() override; 123 void OnLostCapture() override;
122 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 124 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
(...skipping 15 matching lines...) Expand all
138 scoped_ptr<ui::PlatformWindow> platform_window_; 140 scoped_ptr<ui::PlatformWindow> platform_window_;
139 141
140 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; 142 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); 144 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager);
143 }; 145 };
144 146
145 } // namespace view_manager 147 } // namespace view_manager
146 148
147 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_ 149 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698