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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 const gfx::Point& location) OVERRIDE; | 98 const gfx::Point& location) OVERRIDE; |
99 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; | 99 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; |
100 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; | 100 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; |
101 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; | 101 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; |
102 virtual bool CanFocus() OVERRIDE; | 102 virtual bool CanFocus() OVERRIDE; |
103 virtual void OnCaptureLost() OVERRIDE; | 103 virtual void OnCaptureLost() OVERRIDE; |
104 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 104 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
105 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; | 105 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
106 virtual void OnWindowDestroying() OVERRIDE; | 106 virtual void OnWindowDestroying() OVERRIDE; |
107 virtual void OnWindowDestroyed() OVERRIDE; | 107 virtual void OnWindowDestroyed() OVERRIDE; |
108 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; | 108 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
109 virtual bool HasHitTestMask() const OVERRIDE; | 109 virtual bool HasHitTestMask() const OVERRIDE; |
110 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 110 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
111 | 111 |
112 // Overridden from aura::client::DragDropDelegate: | 112 // Overridden from aura::client::DragDropDelegate: |
113 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; | 113 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; |
114 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; | 114 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; |
115 virtual void OnDragExited() OVERRIDE; | 115 virtual void OnDragExited() OVERRIDE; |
116 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; | 116 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; |
117 | 117 |
118 gfx::Size initial_size_; | 118 gfx::Size initial_size_; |
(...skipping 18 matching lines...) Expand all Loading... |
137 // We keep track of the render view host we're dragging over. If it changes | 137 // We keep track of the render view host we're dragging over. If it changes |
138 // during a drag, we need to re-send the DragEnter message. WARNING: | 138 // during a drag, we need to re-send the DragEnter message. WARNING: |
139 // this pointer should never be dereferenced. We only use it for comparing | 139 // this pointer should never be dereferenced. We only use it for comparing |
140 // pointers. | 140 // pointers. |
141 void* current_rvh_for_drag_; | 141 void* current_rvh_for_drag_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 143 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
144 }; | 144 }; |
145 | 145 |
146 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 146 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
OLD | NEW |