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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 virtual void OnWindowDestroying() OVERRIDE; | 107 virtual void OnWindowDestroying() OVERRIDE; |
108 virtual void OnWindowDestroyed() OVERRIDE; | 108 virtual void OnWindowDestroyed() OVERRIDE; |
109 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 109 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; |
110 virtual bool HasHitTestMask() const OVERRIDE; | 110 virtual bool HasHitTestMask() const OVERRIDE; |
111 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; | 111 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE; |
112 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; | 112 virtual scoped_refptr<ui::Texture> CopyTexture() OVERRIDE; |
113 | 113 |
114 // Overridden from ui::EventHandler: | 114 // Overridden from ui::EventHandler: |
115 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; | 115 virtual ui::EventResult OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
116 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; | 116 virtual ui::EventResult OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
117 virtual ui::TouchStatus OnTouchEvent(ui::TouchEvent* event) OVERRIDE; | 117 virtual ui::EventResult OnTouchEvent(ui::TouchEvent* event) OVERRIDE; |
118 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 118 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
119 | 119 |
120 // Overridden from aura::client::DragDropDelegate: | 120 // Overridden from aura::client::DragDropDelegate: |
121 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; | 121 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; |
122 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | 122 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; |
123 virtual void OnDragExited() OVERRIDE; | 123 virtual void OnDragExited() OVERRIDE; |
124 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | 124 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; |
125 | 125 |
126 scoped_ptr<aura::Window> window_; | 126 scoped_ptr<aura::Window> window_; |
127 | 127 |
(...skipping 15 matching lines...) Expand all Loading... |
143 // 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 |
144 // 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: |
145 // 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 |
146 // pointers. | 146 // pointers. |
147 void* current_rvh_for_drag_; | 147 void* current_rvh_for_drag_; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 149 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
150 }; | 150 }; |
151 | 151 |
152 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 152 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
OLD | NEW |