| 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // Notifies the view that its enclosing window has changed visibility | 116 // Notifies the view that its enclosing window has changed visibility |
| 117 // (minimized/unminimized, app hidden/unhidden, etc). | 117 // (minimized/unminimized, app hidden/unhidden, etc). |
| 118 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for | 118 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for |
| 119 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | 119 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding |
| 120 // message and renderer-side handling) can be removed in favor of using | 120 // message and renderer-side handling) can be removed in favor of using |
| 121 // WasHidden/WasShown. | 121 // WasHidden/WasShown. |
| 122 virtual void SetWindowVisibility(bool visible) = 0; | 122 virtual void SetWindowVisibility(bool visible) = 0; |
| 123 | 123 |
| 124 // Informs the view that its containing window's frame changed. | 124 // Informs the view that its containing window's frame changed. |
| 125 virtual void WindowFrameChanged() = 0; | 125 virtual void WindowFrameChanged() = 0; |
| 126 |
| 127 // Brings up the dictionary showing a definition for the selected text. |
| 128 virtual void ShowDefinitionForSelection() = 0; |
| 126 #endif // defined(OS_MACOSX) | 129 #endif // defined(OS_MACOSX) |
| 127 | 130 |
| 128 #if defined(TOOLKIT_GTK) | 131 #if defined(TOOLKIT_GTK) |
| 129 // Gets the event for the last mouse down. | 132 // Gets the event for the last mouse down. |
| 130 virtual GdkEventButton* GetLastMouseDown() = 0; | 133 virtual GdkEventButton* GetLastMouseDown() = 0; |
| 131 // Builds a submenu containing all the gtk input method commands. | 134 // Builds a submenu containing all the gtk input method commands. |
| 132 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; | 135 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; |
| 133 #endif // defined(TOOLKIT_GTK) | 136 #endif // defined(TOOLKIT_GTK) |
| 134 | 137 |
| 135 #if defined(OS_ANDROID) | 138 #if defined(OS_ANDROID) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 149 // Return value indicates whether the mouse is locked successfully or not. | 152 // Return value indicates whether the mouse is locked successfully or not. |
| 150 virtual bool LockMouse() = 0; | 153 virtual bool LockMouse() = 0; |
| 151 virtual void UnlockMouse() = 0; | 154 virtual void UnlockMouse() = 0; |
| 152 // Returns true if the mouse pointer is currently locked. | 155 // Returns true if the mouse pointer is currently locked. |
| 153 virtual bool IsMouseLocked() = 0; | 156 virtual bool IsMouseLocked() = 0; |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } // namespace content | 159 } // namespace content |
| 157 | 160 |
| 158 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 161 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |