| 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_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; | 87 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE; |
| 88 virtual void GotFocus() OVERRIDE; | 88 virtual void GotFocus() OVERRIDE; |
| 89 virtual void TakeFocus(bool reverse) OVERRIDE; | 89 virtual void TakeFocus(bool reverse) OVERRIDE; |
| 90 | 90 |
| 91 // Overridden from aura::WindowDelegate: | 91 // Overridden from aura::WindowDelegate: |
| 92 virtual gfx::Size GetMinimumSize() const OVERRIDE; | 92 virtual gfx::Size GetMinimumSize() const OVERRIDE; |
| 93 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 93 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
| 94 const gfx::Rect& new_bounds) OVERRIDE; | 94 const gfx::Rect& new_bounds) OVERRIDE; |
| 95 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE; | 95 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE; |
| 96 virtual void OnBlur() OVERRIDE; | 96 virtual void OnBlur() OVERRIDE; |
| 97 virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | |
| 98 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 97 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
| 99 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 98 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 100 virtual bool ShouldDescendIntoChildForEventHandling( | 99 virtual bool ShouldDescendIntoChildForEventHandling( |
| 101 aura::Window* child, | 100 aura::Window* child, |
| 102 const gfx::Point& location) OVERRIDE; | 101 const gfx::Point& location) OVERRIDE; |
| 103 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | |
| 104 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | |
| 105 virtual ui::EventResult OnGestureEvent( | |
| 106 ui::GestureEvent* event) OVERRIDE; | |
| 107 virtual bool CanFocus() OVERRIDE; | 102 virtual bool CanFocus() OVERRIDE; |
| 108 virtual void OnCaptureLost() OVERRIDE; | 103 virtual void OnCaptureLost() OVERRIDE; |
| 109 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 104 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 110 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 105 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 111 virtual void OnWindowDestroying() OVERRIDE; | 106 virtual void OnWindowDestroying() OVERRIDE; |
| 112 virtual void OnWindowDestroyed() OVERRIDE; | 107 virtual void OnWindowDestroyed() OVERRIDE; |
| 113 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 108 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
| 114 virtual bool HasHitTestMask() const OVERRIDE; | 109 virtual bool HasHitTestMask() const OVERRIDE; |
| 115 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 110 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
| 116 | 111 |
| 112 // Overridden from ui::EventHandler: |
| 113 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 114 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 115 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 116 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 117 |
| 117 // Overridden from aura::client::DragDropDelegate: | 118 // Overridden from aura::client::DragDropDelegate: |
| 118 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 119 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
| 119 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 120 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
| 120 virtual void OnDragExited() OVERRIDE; | 121 virtual void OnDragExited() OVERRIDE; |
| 121 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 122 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
| 122 | 123 |
| 123 gfx::Size initial_size_; | 124 gfx::Size initial_size_; |
| 124 | 125 |
| 125 scoped_ptr<aura::Window> window_; | 126 scoped_ptr<aura::Window> window_; |
| 126 | 127 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 142 // We keep track of the render view host we're dragging over. If it changes | 143 // We keep track of the render view host we're dragging over. If it changes |
| 143 // during a drag, we need to re-send the DragEnter message. WARNING: | 144 // during a drag, we need to re-send the DragEnter message. WARNING: |
| 144 // this pointer should never be dereferenced. We only use it for comparing | 145 // this pointer should never be dereferenced. We only use it for comparing |
| 145 // pointers. | 146 // pointers. |
| 146 void* current_rvh_for_drag_; | 147 void* current_rvh_for_drag_; |
| 147 | 148 |
| 148 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 149 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
| 149 }; | 150 }; |
| 150 | 151 |
| 151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 152 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
| OLD | NEW |