| 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 "base/strings/string16.h" | 9 #include "base/strings/string16.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/public/web/WebInputEvent.h" | 13 #include "third_party/WebKit/public/web/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) | |
| 17 #include <gdk/gdk.h> | |
| 18 #endif | |
| 19 | |
| 20 class GURL; | 16 class GURL; |
| 21 | 17 |
| 22 namespace gfx { | 18 namespace gfx { |
| 23 class Rect; | 19 class Rect; |
| 24 class Size; | 20 class Size; |
| 25 } | 21 } |
| 26 | 22 |
| 27 namespace content { | 23 namespace content { |
| 28 | 24 |
| 29 class BrowserAccessibilityManager; | 25 class BrowserAccessibilityManager; |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 140 |
| 145 // Returns |true| if Mac OS X text to speech is supported. | 141 // Returns |true| if Mac OS X text to speech is supported. |
| 146 virtual bool SupportsSpeech() const = 0; | 142 virtual bool SupportsSpeech() const = 0; |
| 147 // Tells the view to speak the currently selected text. | 143 // Tells the view to speak the currently selected text. |
| 148 virtual void SpeakSelection() = 0; | 144 virtual void SpeakSelection() = 0; |
| 149 // Returns |true| if text is currently being spoken by Mac OS X. | 145 // Returns |true| if text is currently being spoken by Mac OS X. |
| 150 virtual bool IsSpeaking() const = 0; | 146 virtual bool IsSpeaking() const = 0; |
| 151 // Stops speaking, if it is currently in progress. | 147 // Stops speaking, if it is currently in progress. |
| 152 virtual void StopSpeaking() = 0; | 148 virtual void StopSpeaking() = 0; |
| 153 #endif // defined(OS_MACOSX) | 149 #endif // defined(OS_MACOSX) |
| 154 | |
| 155 #if defined(TOOLKIT_GTK) | |
| 156 // Gets the event for the last mouse down. | |
| 157 virtual GdkEventButton* GetLastMouseDown() = 0; | |
| 158 // Builds a submenu containing all the gtk input method commands. | |
| 159 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; | |
| 160 #endif // defined(TOOLKIT_GTK) | |
| 161 }; | 150 }; |
| 162 | 151 |
| 163 } // namespace content | 152 } // namespace content |
| 164 | 153 |
| 165 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 154 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |