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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
12 #include "third_party/skia/include/core/SkRegion.h" | 12 #include "third_party/skia/include/core/SkRegion.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
15 | 15 |
16 #if defined(TOOLKIT_GTK) | 16 #if defined(TOOLKIT_GTK) |
17 #include <gdk/gdk.h> | 17 #include <gdk/gdk.h> |
18 #endif | 18 #endif |
19 | 19 |
20 class BrowserAccessibilityManager; | 20 class BrowserAccessibilityManager; |
| 21 class GURL; |
21 | 22 |
22 namespace gfx { | 23 namespace gfx { |
23 class Rect; | 24 class Rect; |
24 class Size; | 25 class Size; |
25 } | 26 } |
26 | 27 |
27 namespace content { | 28 namespace content { |
28 | 29 |
29 class RenderWidgetHost; | 30 class RenderWidgetHost; |
30 | 31 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 virtual void WindowFrameChanged() = 0; | 126 virtual void WindowFrameChanged() = 0; |
126 #endif // defined(OS_MACOSX) | 127 #endif // defined(OS_MACOSX) |
127 | 128 |
128 #if defined(TOOLKIT_GTK) | 129 #if defined(TOOLKIT_GTK) |
129 // Gets the event for the last mouse down. | 130 // Gets the event for the last mouse down. |
130 virtual GdkEventButton* GetLastMouseDown() = 0; | 131 virtual GdkEventButton* GetLastMouseDown() = 0; |
131 // Builds a submenu containing all the gtk input method commands. | 132 // Builds a submenu containing all the gtk input method commands. |
132 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; | 133 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; |
133 #endif // defined(TOOLKIT_GTK) | 134 #endif // defined(TOOLKIT_GTK) |
134 | 135 |
| 136 #if defined(OS_ANDROID) |
| 137 virtual void StartContentIntent(const GURL& content_url) = 0; |
| 138 #endif |
| 139 |
135 // Subclasses should override this method to do what is appropriate to set | 140 // Subclasses should override this method to do what is appropriate to set |
136 // the custom background for their platform. | 141 // the custom background for their platform. |
137 virtual void SetBackground(const SkBitmap& background) = 0; | 142 virtual void SetBackground(const SkBitmap& background) = 0; |
138 virtual const SkBitmap& GetBackground() = 0; | 143 virtual const SkBitmap& GetBackground() = 0; |
139 | 144 |
140 #if defined(OS_WIN) && !defined(USE_AURA) | 145 #if defined(OS_WIN) && !defined(USE_AURA) |
141 // The region specified will be transparent to mouse clicks. | 146 // The region specified will be transparent to mouse clicks. |
142 virtual void SetClickthroughRegion(SkRegion* region) {} | 147 virtual void SetClickthroughRegion(SkRegion* region) {} |
143 #endif | 148 #endif |
144 | 149 |
145 // Return value indicates whether the mouse is locked successfully or not. | 150 // Return value indicates whether the mouse is locked successfully or not. |
146 virtual bool LockMouse() = 0; | 151 virtual bool LockMouse() = 0; |
147 virtual void UnlockMouse() = 0; | 152 virtual void UnlockMouse() = 0; |
148 // Returns true if the mouse pointer is currently locked. | 153 // Returns true if the mouse pointer is currently locked. |
149 virtual bool IsMouseLocked() = 0; | 154 virtual bool IsMouseLocked() = 0; |
150 }; | 155 }; |
151 | 156 |
152 } // namespace content | 157 } // namespace content |
153 | 158 |
154 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 159 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |