| 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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 struct WebMediaPlayerAction; | 85 struct WebMediaPlayerAction; |
| 86 struct WebPluginAction; | 86 struct WebPluginAction; |
| 87 struct WebPoint; | 87 struct WebPoint; |
| 88 struct WebWindowFeatures; | 88 struct WebWindowFeatures; |
| 89 | 89 |
| 90 #if defined(OS_ANDROID) | 90 #if defined(OS_ANDROID) |
| 91 class WebHitTestResult; | 91 class WebHitTestResult; |
| 92 #endif | 92 #endif |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 namespace gfx { |
| 96 class ICCProfile; |
| 97 } |
| 98 |
| 95 namespace content { | 99 namespace content { |
| 96 | 100 |
| 97 class RendererDateTimePicker; | 101 class RendererDateTimePicker; |
| 98 class RenderViewImplTest; | 102 class RenderViewImplTest; |
| 99 class RenderViewObserver; | 103 class RenderViewObserver; |
| 100 class RenderViewTest; | 104 class RenderViewTest; |
| 101 class SpeechRecognitionDispatcher; | 105 class SpeechRecognitionDispatcher; |
| 102 struct FaviconURL; | 106 struct FaviconURL; |
| 103 struct FileChooserParams; | 107 struct FileChooserParams; |
| 104 struct ResizeParams; | 108 struct ResizeParams; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 unsigned GetLocalSessionHistoryLengthForTesting() const; | 232 unsigned GetLocalSessionHistoryLengthForTesting() const; |
| 229 | 233 |
| 230 // Invokes OnSetFocus and marks the widget as active depending on the value | 234 // Invokes OnSetFocus and marks the widget as active depending on the value |
| 231 // of |enable|. This is used for layout tests that need to control the focus | 235 // of |enable|. This is used for layout tests that need to control the focus |
| 232 // synchronously from the renderer. | 236 // synchronously from the renderer. |
| 233 void SetFocusAndActivateForTesting(bool enable); | 237 void SetFocusAndActivateForTesting(bool enable); |
| 234 | 238 |
| 235 // Change the device scale factor and force the compositor to resize. | 239 // Change the device scale factor and force the compositor to resize. |
| 236 void SetDeviceScaleFactorForTesting(float factor); | 240 void SetDeviceScaleFactorForTesting(float factor); |
| 237 | 241 |
| 242 // Change the device ICC color profile while running a layout test. |
| 243 void SetDeviceColorProfileForTesting(const gfx::ICCProfile& icc_profile); |
| 244 |
| 238 // Used to force the size of a window when running layout tests. | 245 // Used to force the size of a window when running layout tests. |
| 239 void ForceResizeForTesting(const gfx::Size& new_size); | 246 void ForceResizeForTesting(const gfx::Size& new_size); |
| 240 | 247 |
| 241 void UseSynchronousResizeModeForTesting(bool enable); | 248 void UseSynchronousResizeModeForTesting(bool enable); |
| 242 | 249 |
| 243 // Control autoresize mode. | 250 // Control autoresize mode. |
| 244 void EnableAutoResizeForTesting(const gfx::Size& min_size, | 251 void EnableAutoResizeForTesting(const gfx::Size& min_size, |
| 245 const gfx::Size& max_size); | 252 const gfx::Size& max_size); |
| 246 void DisableAutoResizeForTesting(const gfx::Size& new_size); | 253 void DisableAutoResizeForTesting(const gfx::Size& new_size); |
| 247 | 254 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 GetCompositionCharacterBoundsTest); | 484 GetCompositionCharacterBoundsTest); |
| 478 | 485 |
| 479 enum ErrorPageType { | 486 enum ErrorPageType { |
| 480 DNS_ERROR, | 487 DNS_ERROR, |
| 481 HTTP_404, | 488 HTTP_404, |
| 482 CONNECTION_ERROR, | 489 CONNECTION_ERROR, |
| 483 }; | 490 }; |
| 484 | 491 |
| 485 // RenderWidgetOwnerDelegate implementation ---------------------------------- | 492 // RenderWidgetOwnerDelegate implementation ---------------------------------- |
| 486 | 493 |
| 487 void RenderWidgetDidSetColorProfile( | |
| 488 const gfx::ICCProfile& color_profile) override; | |
| 489 void RenderWidgetFocusChangeComplete() override; | 494 void RenderWidgetFocusChangeComplete() override; |
| 490 bool DoesRenderWidgetHaveTouchEventHandlersAt( | 495 bool DoesRenderWidgetHaveTouchEventHandlersAt( |
| 491 const gfx::Point& point) const override; | 496 const gfx::Point& point) const override; |
| 492 bool RenderWidgetWillHandleMouseEvent( | 497 bool RenderWidgetWillHandleMouseEvent( |
| 493 const blink::WebMouseEvent& event) override; | 498 const blink::WebMouseEvent& event) override; |
| 494 | 499 |
| 495 // Old WebFrameClient implementations ---------------------------------------- | 500 // Old WebFrameClient implementations ---------------------------------------- |
| 496 | 501 |
| 497 // RenderViewImpl used to be a WebFrameClient, but now RenderFrameImpl is the | 502 // RenderViewImpl used to be a WebFrameClient, but now RenderFrameImpl is the |
| 498 // WebFrameClient. However, many implementations of WebFrameClient methods | 503 // WebFrameClient. However, many implementations of WebFrameClient methods |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 // --------------------------------------------------------------------------- | 842 // --------------------------------------------------------------------------- |
| 838 | 843 |
| 839 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; | 844 base::WeakPtrFactory<RenderViewImpl> weak_ptr_factory_; |
| 840 | 845 |
| 841 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 846 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 842 }; | 847 }; |
| 843 | 848 |
| 844 } // namespace content | 849 } // namespace content |
| 845 | 850 |
| 846 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 851 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |