| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; | 193 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; |
| 194 | 194 |
| 195 // Overridden from ui::EventHandler: | 195 // Overridden from ui::EventHandler: |
| 196 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 196 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 197 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 197 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 198 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; | 198 virtual ui::EventResult OnScrollEvent(ui::ScrollEvent* event) OVERRIDE; |
| 199 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 199 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 200 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 200 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 201 | 201 |
| 202 // Overridden from aura::client::ActivationDelegate: | 202 // Overridden from aura::client::ActivationDelegate: |
| 203 virtual bool ShouldActivate(const ui::Event* event) OVERRIDE; | 203 virtual bool ShouldActivate() const OVERRIDE; |
| 204 virtual void OnActivated() OVERRIDE; | 204 virtual void OnActivated() OVERRIDE; |
| 205 virtual void OnLostActive() OVERRIDE; | 205 virtual void OnLostActive() OVERRIDE; |
| 206 | 206 |
| 207 protected: | 207 protected: |
| 208 friend class RenderWidgetHostView; | 208 friend class RenderWidgetHostView; |
| 209 | 209 |
| 210 // Should construct only via RenderWidgetHostView::CreateViewForWidget. | 210 // Should construct only via RenderWidgetHostView::CreateViewForWidget. |
| 211 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); | 211 explicit RenderWidgetHostViewAura(RenderWidgetHost* host); |
| 212 | 212 |
| 213 private: | 213 private: |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 YES, | 415 YES, |
| 416 // We locked, so at some point we'll need to kick a frame. | 416 // We locked, so at some point we'll need to kick a frame. |
| 417 YES_DID_LOCK, | 417 YES_DID_LOCK, |
| 418 // No. A lock timed out, we need to kick a new frame before locking again. | 418 // No. A lock timed out, we need to kick a new frame before locking again. |
| 419 NO_PENDING_RENDERER_FRAME, | 419 NO_PENDING_RENDERER_FRAME, |
| 420 // No. We've got a frame, but it hasn't been committed. | 420 // No. We've got a frame, but it hasn't been committed. |
| 421 NO_PENDING_COMMIT, | 421 NO_PENDING_COMMIT, |
| 422 }; | 422 }; |
| 423 CanLockCompositorState can_lock_compositor_; | 423 CanLockCompositorState can_lock_compositor_; |
| 424 | 424 |
| 425 // Whether or not the ui::Event* being processed currently would cause |
| 426 // |window_| to be activated. |
| 427 bool pointer_activate_; |
| 428 |
| 425 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 429 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
| 426 }; | 430 }; |
| 427 | 431 |
| 428 } // namespace content | 432 } // namespace content |
| 429 | 433 |
| 430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 434 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
| OLD | NEW |