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

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: 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/connection_manager.cc ('k') | components/mus/display_manager.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 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.
108 // TODO(fsamuel): This should use vblank as a signal rather than a timer
109 // http://crbug.com/533042
106 void Draw(); 110 void Draw();
111
112 // This is called after cc::Display has completed generating a new frame
113 // for the display. TODO(fsamuel): Idle time processing should happen here
114 // if there is budget for it.
107 void DidDraw(); 115 void DidDraw();
108 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio); 116 void UpdateMetrics(const gfx::Size& size, float device_pixel_ratio);
117 scoped_ptr<cc::CompositorFrame> GenerateCompositorFrame();
118 const cc::CompositorFrame* GetLastCompositorFrame() const;
109 119
110 // ui::PlatformWindowDelegate: 120 // ui::PlatformWindowDelegate:
111 void OnBoundsChanged(const gfx::Rect& new_bounds) override; 121 void OnBoundsChanged(const gfx::Rect& new_bounds) override;
112 void OnDamageRect(const gfx::Rect& damaged_region) override; 122 void OnDamageRect(const gfx::Rect& damaged_region) override;
113 void DispatchEvent(ui::Event* event) override; 123 void DispatchEvent(ui::Event* event) override;
114 void OnCloseRequest() override; 124 void OnCloseRequest() override;
115 void OnClosed() override; 125 void OnClosed() override;
116 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 126 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
117 void OnLostCapture() override; 127 void OnLostCapture() override;
118 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 128 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
(...skipping 15 matching lines...) Expand all
134 scoped_ptr<ui::PlatformWindow> platform_window_; 144 scoped_ptr<ui::PlatformWindow> platform_window_;
135 145
136 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; 146 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_;
137 147
138 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); 148 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager);
139 }; 149 };
140 150
141 } // namespace mus 151 } // namespace mus
142 152
143 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_ 153 #endif // COMPONENTS_MUS_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « components/mus/connection_manager.cc ('k') | components/mus/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698