| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 virtual void OnInputMethodChanged() OVERRIDE; | 155 virtual void OnInputMethodChanged() OVERRIDE; |
| 156 virtual bool ChangeTextDirectionAndLayoutAlignment( | 156 virtual bool ChangeTextDirectionAndLayoutAlignment( |
| 157 base::i18n::TextDirection direction) OVERRIDE; | 157 base::i18n::TextDirection direction) OVERRIDE; |
| 158 | 158 |
| 159 // Overridden from aura::WindowDelegate: | 159 // Overridden from aura::WindowDelegate: |
| 160 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 160 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 161 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 161 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 162 const gfx::Rect& new_bounds) OVERRIDE; | 162 const gfx::Rect& new_bounds) OVERRIDE; |
| 163 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE; | 163 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE; |
| 164 virtual void OnBlur() OVERRIDE; | 164 virtual void OnBlur() OVERRIDE; |
| 165 virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | |
| 166 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 165 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
| 167 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 166 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 168 virtual bool ShouldDescendIntoChildForEventHandling( | 167 virtual bool ShouldDescendIntoChildForEventHandling( |
| 169 aura::Window* child, | 168 aura::Window* child, |
| 170 const gfx::Point& location) OVERRIDE; | 169 const gfx::Point& location) OVERRIDE; |
| 171 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | |
| 172 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | |
| 173 virtual ui::EventResult OnGestureEvent( | |
| 174 ui::GestureEvent* event) OVERRIDE; | |
| 175 virtual bool CanFocus() OVERRIDE; | 170 virtual bool CanFocus() OVERRIDE; |
| 176 virtual void OnCaptureLost() OVERRIDE; | 171 virtual void OnCaptureLost() OVERRIDE; |
| 177 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 172 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 178 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 173 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 179 virtual void OnWindowDestroying() OVERRIDE; | 174 virtual void OnWindowDestroying() OVERRIDE; |
| 180 virtual void OnWindowDestroyed() OVERRIDE; | 175 virtual void OnWindowDestroyed() OVERRIDE; |
| 181 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 176 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
| 182 virtual bool HasHitTestMask() const OVERRIDE; | 177 virtual bool HasHitTestMask() const OVERRIDE; |
| 183 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 178 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 184 | 179 |
| 180 // Overridden from ui::EventHandler: |
| 181 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 182 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 183 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 184 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 185 |
| 185 // Overridden from aura::client::ActivationDelegate: | 186 // Overridden from aura::client::ActivationDelegate: |
| 186 virtual bool ShouldActivate(const ui::Event* event) OVERRIDE; | 187 virtual bool ShouldActivate(const ui::Event* event) OVERRIDE; |
| 187 virtual void OnActivated() OVERRIDE; | 188 virtual void OnActivated() OVERRIDE; |
| 188 virtual void OnLostActive() OVERRIDE; | 189 virtual void OnLostActive() OVERRIDE; |
| 189 | 190 |
| 190 protected: | 191 protected: |
| 191 friend class RenderWidgetHostView; | 192 friend class RenderWidgetHostView; |
| 192 | 193 |
| 193 // Should construct only via RenderWidgetHostView::CreateViewForWidget. | 194 // Should construct only via RenderWidgetHostView::CreateViewForWidget. |
| 194 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); | 195 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 378 |
| 378 // This lock is for waiting for a front surface to become available to draw. | 379 // This lock is for waiting for a front surface to become available to draw. |
| 379 scoped_refptr<aura::CompositorLock> released_front_lock_; | 380 scoped_refptr<aura::CompositorLock> released_front_lock_; |
| 380 | 381 |
| 381 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 382 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 382 }; | 383 }; |
| 383 | 384 |
| 384 } // namespace content | 385 } // namespace content |
| 385 | 386 |
| 386 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 387 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |