| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void OnBlur() OVERRIDE; | 99 virtual void OnBlur() OVERRIDE; |
| 100 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; | 100 virtual bool OnKeyEvent(aura::KeyEvent* event) OVERRIDE; |
| 101 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; | 101 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; |
| 102 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; | 102 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; |
| 103 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; | 103 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE; |
| 104 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; | 104 virtual ui::TouchStatus OnTouchEvent(aura::TouchEvent* event) OVERRIDE; |
| 105 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; | 105 virtual ui::GestureStatus OnGestureEvent(aura::GestureEvent* event) OVERRIDE; |
| 106 virtual bool CanFocus() OVERRIDE; | 106 virtual bool CanFocus() OVERRIDE; |
| 107 virtual void OnCaptureLost() OVERRIDE; | 107 virtual void OnCaptureLost() OVERRIDE; |
| 108 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 108 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 109 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; |
| 109 virtual void OnWindowDestroying() OVERRIDE; | 110 virtual void OnWindowDestroying() OVERRIDE; |
| 110 virtual void OnWindowDestroyed() OVERRIDE; | 111 virtual void OnWindowDestroyed() OVERRIDE; |
| 111 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; | 112 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE; |
| 112 | 113 |
| 113 // Overridden from aura::client::DragDropDelegate: | 114 // Overridden from aura::client::DragDropDelegate: |
| 114 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; | 115 virtual void OnDragEntered(const aura::DropTargetEvent& event) OVERRIDE; |
| 115 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; | 116 virtual int OnDragUpdated(const aura::DropTargetEvent& event) OVERRIDE; |
| 116 virtual void OnDragExited() OVERRIDE; | 117 virtual void OnDragExited() OVERRIDE; |
| 117 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; | 118 virtual int OnPerformDrop(const aura::DropTargetEvent& event) OVERRIDE; |
| 118 | 119 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 141 // We keep track of the render view host we're dragging over. If it changes | 142 // We keep track of the render view host we're dragging over. If it changes |
| 142 // during a drag, we need to re-send the DragEnter message. WARNING: | 143 // during a drag, we need to re-send the DragEnter message. WARNING: |
| 143 // this pointer should never be dereferenced. We only use it for comparing | 144 // this pointer should never be dereferenced. We only use it for comparing |
| 144 // pointers. | 145 // pointers. |
| 145 void* current_rvh_for_drag_; | 146 void* current_rvh_for_drag_; |
| 146 | 147 |
| 147 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); | 148 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); |
| 148 }; | 149 }; |
| 149 | 150 |
| 150 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ | 151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ |
| OLD | NEW |