| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 97 virtual bool OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
| 98 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 98 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
| 99 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 99 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 100 virtual bool ShouldDescendIntoChildForEventHandling( | 100 virtual bool ShouldDescendIntoChildForEventHandling( |
| 101 aura::Window* child, | 101 aura::Window* child, |
| 102 const gfx::Point& location) OVERRIDE; | 102 const gfx::Point& event_location, |
| 103 ui::EventType event_type) OVERRIDE; |
| 103 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 104 virtual bool OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
| 104 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 105 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
| 105 virtual ui::GestureStatus OnGestureEvent( | 106 virtual ui::GestureStatus OnGestureEvent( |
| 106 ui::GestureEvent* event) OVERRIDE; | 107 ui::GestureEvent* event) OVERRIDE; |
| 107 virtual bool CanFocus() OVERRIDE; | 108 virtual bool CanFocus() OVERRIDE; |
| 108 virtual void OnCaptureLost() OVERRIDE; | 109 virtual void OnCaptureLost() OVERRIDE; |
| 109 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 110 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 110 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 111 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 111 virtual void OnWindowDestroying() OVERRIDE; | 112 virtual void OnWindowDestroying() OVERRIDE; |
| 112 virtual void OnWindowDestroyed() OVERRIDE; | 113 virtual void OnWindowDestroyed() OVERRIDE; |
| (...skipping 29 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 |