| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 27 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 28 class AcceleratedSurfaceContainerLinux; | 28 class AcceleratedSurfaceContainerLinux; |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 class CONTENT_EXPORT RenderWidgetHostViewAura | 31 class CONTENT_EXPORT RenderWidgetHostViewAura |
| 32 : NON_EXPORTED_BASE(public RenderWidgetHostView), | 32 : NON_EXPORTED_BASE(public RenderWidgetHostView), |
| 33 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 33 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 34 public ui::CompositorObserver, | 34 public ui::CompositorObserver, |
| 35 #endif | 35 #endif |
| 36 public aura::WindowDelegate, | 36 public aura::WindowDelegate, |
| 37 public aura::ActivationDelegate { | 37 public aura::client::ActivationDelegate { |
| 38 public: | 38 public: |
| 39 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); | 39 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); |
| 40 virtual ~RenderWidgetHostViewAura(); | 40 virtual ~RenderWidgetHostViewAura(); |
| 41 | 41 |
| 42 // TODO(derat): Add an abstract RenderWidgetHostView::InitAsChild() method and | 42 // TODO(derat): Add an abstract RenderWidgetHostView::InitAsChild() method and |
| 43 // update callers: http://crbug.com/102450. | 43 // update callers: http://crbug.com/102450. |
| 44 void InitAsChild(); | 44 void InitAsChild(); |
| 45 | 45 |
| 46 // Overridden from RenderWidgetHostView: | 46 // Overridden from RenderWidgetHostView: |
| 47 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 47 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 116 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 117 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; | 117 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; |
| 118 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; | 118 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; |
| 119 virtual bool CanFocus() OVERRIDE; | 119 virtual bool CanFocus() OVERRIDE; |
| 120 virtual void OnCaptureLost() OVERRIDE; | 120 virtual void OnCaptureLost() OVERRIDE; |
| 121 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 121 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 122 virtual void OnWindowDestroying() OVERRIDE; | 122 virtual void OnWindowDestroying() OVERRIDE; |
| 123 virtual void OnWindowDestroyed() OVERRIDE; | 123 virtual void OnWindowDestroyed() OVERRIDE; |
| 124 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; | 124 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; |
| 125 | 125 |
| 126 // Overridden from aura::ActivationDelegate: | 126 // Overridden from aura::client::ActivationDelegate: |
| 127 virtual bool ShouldActivate(aura::Event* event) OVERRIDE; | 127 virtual bool ShouldActivate(aura::Event* event) OVERRIDE; |
| 128 virtual void OnActivated() OVERRIDE; | 128 virtual void OnActivated() OVERRIDE; |
| 129 virtual void OnLostActive() OVERRIDE; | 129 virtual void OnLostActive() OVERRIDE; |
| 130 | 130 |
| 131 private: | 131 private: |
| 132 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) | 132 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) |
| 133 // Overridden from ui::CompositorObserver: | 133 // Overridden from ui::CompositorObserver: |
| 134 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; | 134 virtual void OnCompositingEnded(ui::Compositor* compositor) OVERRIDE; |
| 135 #endif | 135 #endif |
| 136 | 136 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 gfx::PluginWindowHandle current_surface_; | 171 gfx::PluginWindowHandle current_surface_; |
| 172 #endif | 172 #endif |
| 173 | 173 |
| 174 bool skip_schedule_paint_; | 174 bool skip_schedule_paint_; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 176 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 179 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |