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_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/public/browser/keyboard_listener.h" | 10 #include "content/public/browser/keyboard_listener.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // NotifyTextDirection(). (We may receive keydown events even after we | 158 // NotifyTextDirection(). (We may receive keydown events even after we |
159 // canceled updating the text direction because of auto-repeat.) | 159 // canceled updating the text direction because of auto-repeat.) |
160 // Note: we cannot undo this change for compatibility with Firefox and IE. | 160 // Note: we cannot undo this change for compatibility with Firefox and IE. |
161 virtual void UpdateTextDirection(WebKit::WebTextDirection direction) = 0; | 161 virtual void UpdateTextDirection(WebKit::WebTextDirection direction) = 0; |
162 virtual void NotifyTextDirection() = 0; | 162 virtual void NotifyTextDirection() = 0; |
163 | 163 |
164 virtual void Blur() = 0; | 164 virtual void Blur() = 0; |
165 | 165 |
166 // Copies the given subset of the backing store into the given (uninitialized) | 166 // Copies the given subset of the backing store into the given (uninitialized) |
167 // PlatformCanvas. If |src_rect| is empty, the whole contents is copied. | 167 // PlatformCanvas. If |src_rect| is empty, the whole contents is copied. |
168 // NOTE: |src_rect| is not supported yet when accelerated compositing is | |
169 // active (http://crbug.com/118571) and the whole content is always copied | |
170 // regardless of |src_rect|. | |
171 // If non empty |accelerated_dest_size| is given and accelerated compositing | 168 // If non empty |accelerated_dest_size| is given and accelerated compositing |
172 // is active, the content is shrinked so that it fits in | 169 // is active, the content is shrinked so that it fits in |
173 // |accelerated_dest_size|. If |accelerated_dest_size| is larger than the | 170 // |accelerated_dest_size|. If |accelerated_dest_size| is larger than the |
174 // contens size, the content is not resized. If |accelerated_dest_size| is | 171 // contens size, the content is not resized. If |accelerated_dest_size| is |
175 // empty, the size copied from the source contents is used. | 172 // empty, the size copied from the source contents is used. |
176 // |callback| is invoked with true on success, false otherwise. |output| can | 173 // |callback| is invoked with true on success, false otherwise. |output| can |
177 // be initialized even on failure. | 174 // be initialized even on failure. |
178 // NOTE: |callback| is called synchronously if the backing store is available. | 175 // NOTE: |callback| is called synchronously if the backing store is available. |
179 // When accelerated compositing is active, it is called asynchronously on Aura | 176 // When accelerated compositing is active, it is called asynchronously on Aura |
180 // and synchronously on the other platforms. | 177 // and synchronously on the other platforms. |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // within content/. This method is necessary because | 276 // within content/. This method is necessary because |
280 // RenderWidgetHost is the root of a diamond inheritance pattern, so | 277 // RenderWidgetHost is the root of a diamond inheritance pattern, so |
281 // subclasses inherit it virtually, which removes our ability to | 278 // subclasses inherit it virtually, which removes our ability to |
282 // static_cast to the subclass. | 279 // static_cast to the subclass. |
283 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; | 280 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() = 0; |
284 }; | 281 }; |
285 | 282 |
286 } // namespace content | 283 } // namespace content |
287 | 284 |
288 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ | 285 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_H_ |
OLD | NEW |