| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // Should construct only via RenderWidgetHostView::CreateViewForWidget. | 180 // Should construct only via RenderWidgetHostView::CreateViewForWidget. |
| 181 explicit RenderWidgetHostViewAura(content::RenderWidgetHost* host); | 181 explicit RenderWidgetHostViewAura(content::RenderWidgetHost* host); |
| 182 | 182 |
| 183 private: | 183 private: |
| 184 class WindowObserver; | 184 class WindowObserver; |
| 185 friend class WindowObserver; | 185 friend class WindowObserver; |
| 186 | 186 |
| 187 // Overridden from ui::CompositorObserver: | 187 // Overridden from ui::CompositorObserver: |
| 188 virtual void OnCompositingStarted(ui::Compositor* compositor) OVERRIDE; | 188 virtual void OnCompositingStarted(ui::Compositor* compositor) OVERRIDE; |
| 189 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; | 189 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; |
| 190 virtual void OnCompositingAborted(ui::Compositor* compositor) OVERRIDE; |
| 190 | 191 |
| 191 // Overridden from ImageTransportFactoryObserver: | 192 // Overridden from ImageTransportFactoryObserver: |
| 192 virtual void OnLostResources(ui::Compositor* compositor) OVERRIDE; | 193 virtual void OnLostResources(ui::Compositor* compositor) OVERRIDE; |
| 193 | 194 |
| 194 void UpdateCursorIfOverSelf(); | 195 void UpdateCursorIfOverSelf(); |
| 195 void UpdateExternalTexture(); | 196 void UpdateExternalTexture(); |
| 196 ui::InputMethod* GetInputMethod() const; | 197 ui::InputMethod* GetInputMethod() const; |
| 197 | 198 |
| 198 // Returns whether the widget needs an input grab to work properly. | 199 // Returns whether the widget needs an input grab to work properly. |
| 199 bool NeedsInputGrab(); | 200 bool NeedsInputGrab(); |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // These locks are the ones waiting for a texture of the right size to come | 305 // These locks are the ones waiting for a texture of the right size to come |
| 305 // back from the renderer/GPU process. | 306 // back from the renderer/GPU process. |
| 306 std::vector<linked_ptr<ResizeLock> > resize_locks_; | 307 std::vector<linked_ptr<ResizeLock> > resize_locks_; |
| 307 // These locks are the ones waiting for a frame to be drawn. | 308 // These locks are the ones waiting for a frame to be drawn. |
| 308 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; | 309 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; |
| 309 | 310 |
| 310 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 311 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 311 }; | 312 }; |
| 312 | 313 |
| 313 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 314 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |