| 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/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 // |subscriber| is now owned by this object, it will be called only on the | 153 // |subscriber| is now owned by this object, it will be called only on the |
| 154 // UI thread. | 154 // UI thread. |
| 155 virtual void BeginFrameSubscription( | 155 virtual void BeginFrameSubscription( |
| 156 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; | 156 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; |
| 157 | 157 |
| 158 // End subscribing for frame presentation events. FrameSubscriber will be | 158 // End subscribing for frame presentation events. FrameSubscriber will be |
| 159 // deleted after this call. | 159 // deleted after this call. |
| 160 virtual void EndFrameSubscription() = 0; | 160 virtual void EndFrameSubscription() = 0; |
| 161 | 161 |
| 162 #if defined(OS_MACOSX) | 162 #if defined(OS_MACOSX) |
| 163 virtual gfx::NativeWindow CreateDetachedModeWindow() = 0; |
| 164 |
| 163 // Set the view's active state (i.e., tint state of controls). | 165 // Set the view's active state (i.e., tint state of controls). |
| 164 virtual void SetActive(bool active) = 0; | 166 virtual void SetActive(bool active) = 0; |
| 165 | 167 |
| 166 // Notifies the view that its enclosing window has changed visibility | 168 // Notifies the view that its enclosing window has changed visibility |
| 167 // (minimized/unminimized, app hidden/unhidden, etc). | 169 // (minimized/unminimized, app hidden/unhidden, etc). |
| 168 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for | 170 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for |
| 169 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | 171 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding |
| 170 // message and renderer-side handling) can be removed in favor of using | 172 // message and renderer-side handling) can be removed in favor of using |
| 171 // WasHidden/WasShown. | 173 // WasHidden/WasShown. |
| 172 virtual void SetWindowVisibility(bool visible) = 0; | 174 virtual void SetWindowVisibility(bool visible) = 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 184 // Returns |true| if text is currently being spoken by Mac OS X. | 186 // Returns |true| if text is currently being spoken by Mac OS X. |
| 185 virtual bool IsSpeaking() const = 0; | 187 virtual bool IsSpeaking() const = 0; |
| 186 // Stops speaking, if it is currently in progress. | 188 // Stops speaking, if it is currently in progress. |
| 187 virtual void StopSpeaking() = 0; | 189 virtual void StopSpeaking() = 0; |
| 188 #endif // defined(OS_MACOSX) | 190 #endif // defined(OS_MACOSX) |
| 189 }; | 191 }; |
| 190 | 192 |
| 191 } // namespace content | 193 } // namespace content |
| 192 | 194 |
| 193 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 195 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |