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

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: Addressed Rob's comments 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void Init(DisplayManagerDelegate* delegate) override; 96 void Init(DisplayManagerDelegate* delegate) override;
97 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds) override; 97 void SchedulePaint(const ServerView* view, const gfx::Rect& bounds) override;
98 void SetViewportSize(const gfx::Size& size) override; 98 void SetViewportSize(const gfx::Size& size) override;
99 void SetTitle(const base::string16& title) override; 99 void SetTitle(const base::string16& title) override;
100 const mojo::ViewportMetrics& GetViewportMetrics() override; 100 const mojo::ViewportMetrics& GetViewportMetrics() override;
101 void UpdateTextInputState(const ui::TextInputState& state) override; 101 void UpdateTextInputState(const ui::TextInputState& state) override;
102 void SetImeVisibility(bool visible) override; 102 void SetImeVisibility(bool visible) override;
103 103
104 private: 104 private:
105 void WantToDraw(); 105 void WantToDraw();
106
107 // This method initiates a top level redraw of the display.
rjkroege 2015/09/17 19:03:56 When w.r.t. to vblank?
Fady Samuel 2015/09/17 20:00:21 No :P I filed a bug for that. Added a reference an
106 void Draw(); 108 void Draw();
107 void DidDraw(); 109 void DidDraw();
rjkroege 2015/09/17 19:03:56 when is this called with regards to the vblank?
Fady Samuel 2015/09/17 20:00:21 Done.
108 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio); 110 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio);
111 scoped_ptr<cc::CompositorFrame> GenerateCompositorFrame();
112 const cc::CompositorFrame* GetLastCompositorFrame() const;
109 113
110 // ui::PlatformWindowDelegate: 114 // ui::PlatformWindowDelegate:
111 void OnBoundsChanged(const gfx::Rect& new_bounds) override; 115 void OnBoundsChanged(const gfx::Rect& new_bounds) override;
112 void OnDamageRect(const gfx::Rect& damaged_region) override; 116 void OnDamageRect(const gfx::Rect& damaged_region) override;
113 void DispatchEvent(ui::Event* event) override; 117 void DispatchEvent(ui::Event* event) override;
114 void OnCloseRequest() override; 118 void OnCloseRequest() override;
115 void OnClosed() override; 119 void OnClosed() override;
116 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 120 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
117 void OnLostCapture() override; 121 void OnLostCapture() override;
118 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 122 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
(...skipping 15 matching lines...) Expand all
134 scoped_ptr<ui::PlatformWindow> platform_window_; 138 scoped_ptr<ui::PlatformWindow> platform_window_;
135 139
136 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; 140 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_;
137 141
138 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); 142 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager);
139 }; 143 };
140 144
141 } // namespace mus 145 } // namespace mus
142 146
143 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_ 147 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698