OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H
_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H
_ |
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H
_ | 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H
_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 class WebContents; | 10 class WebContents; |
| 11 class WebDragDestDelegate; |
11 } | 12 } |
12 namespace gfx { | 13 namespace gfx { |
13 class Size; | 14 class Size; |
14 } | 15 } |
15 namespace views { | 16 namespace views { |
16 namespace internal { | 17 namespace internal { |
17 class NativeWidgetDelegate; | 18 class NativeWidgetDelegate; |
18 } | 19 } |
19 } | 20 } |
20 | 21 |
(...skipping 15 matching lines...) Expand all Loading... |
36 virtual void OnNativeTabContentsViewWheelZoom(bool zoom_in) = 0; | 37 virtual void OnNativeTabContentsViewWheelZoom(bool zoom_in) = 0; |
37 | 38 |
38 // TODO(beng): | 39 // TODO(beng): |
39 // These two can be replaced by an override of Widget::OnMouseEvent. | 40 // These two can be replaced by an override of Widget::OnMouseEvent. |
40 virtual void OnNativeTabContentsViewMouseDown() = 0; | 41 virtual void OnNativeTabContentsViewMouseDown() = 0; |
41 virtual void OnNativeTabContentsViewMouseMove(bool motion) = 0; | 42 virtual void OnNativeTabContentsViewMouseMove(bool motion) = 0; |
42 | 43 |
43 virtual void OnNativeTabContentsViewDraggingEnded() = 0; | 44 virtual void OnNativeTabContentsViewDraggingEnded() = 0; |
44 | 45 |
45 virtual views::internal::NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; | 46 virtual views::internal::NativeWidgetDelegate* AsNativeWidgetDelegate() = 0; |
| 47 |
| 48 virtual content::WebDragDestDelegate* GetDragDestDelegate() = 0; |
46 }; | 49 }; |
47 | 50 |
48 } // namespace internal | 51 } // namespace internal |
49 | 52 |
50 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGAT
E_H_ | 53 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGAT
E_H_ |
OLD | NEW |