| 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_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 492 |
| 493 // Called by the browser process to update text input state. | 493 // Called by the browser process to update text input state. |
| 494 void OnRequestTextInputStateUpdate(); | 494 void OnRequestTextInputStateUpdate(); |
| 495 #endif | 495 #endif |
| 496 | 496 |
| 497 // Notify the compositor about a change in viewport size. This should be | 497 // Notify the compositor about a change in viewport size. This should be |
| 498 // used only with auto resize mode WebWidgets, as normal WebWidgets should | 498 // used only with auto resize mode WebWidgets, as normal WebWidgets should |
| 499 // go through OnResize. | 499 // go through OnResize. |
| 500 void AutoResizeCompositor(); | 500 void AutoResizeCompositor(); |
| 501 | 501 |
| 502 virtual void SetDeviceScaleFactor(float device_scale_factor); | 502 virtual void OnSetDeviceScaleFactor(float device_scale_factor); |
| 503 bool SetDeviceColorProfile(const std::vector<char>& color_profile); | 503 bool SetDeviceColorProfile(const std::vector<char>& color_profile); |
| 504 | 504 |
| 505 virtual void OnOrientationChange(); | 505 virtual void OnOrientationChange(); |
| 506 | 506 |
| 507 // Override points to notify derived classes that a paint has happened. | 507 // Override points to notify derived classes that a paint has happened. |
| 508 // DidInitiatePaint happens when that has completed, and subsequent rendering | 508 // DidInitiatePaint happens when that has completed, and subsequent rendering |
| 509 // won't affect the painted content. DidFlushPaint happens once we've received | 509 // won't affect the painted content. DidFlushPaint happens once we've received |
| 510 // the ACK that the screen has been updated. For a given paint operation, | 510 // the ACK that the screen has been updated. For a given paint operation, |
| 511 // these overrides will always be called in the order DidInitiatePaint, | 511 // these overrides will always be called in the order DidInitiatePaint, |
| 512 // DidFlushPaint. | 512 // DidFlushPaint. |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // This reference is set by the RenderFrame and is used to query the IME- | 783 // This reference is set by the RenderFrame and is used to query the IME- |
| 784 // related state from the plugin to later send to the browser. | 784 // related state from the plugin to later send to the browser. |
| 785 PepperPluginInstanceImpl* focused_pepper_plugin_; | 785 PepperPluginInstanceImpl* focused_pepper_plugin_; |
| 786 | 786 |
| 787 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 787 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 788 }; | 788 }; |
| 789 | 789 |
| 790 } // namespace content | 790 } // namespace content |
| 791 | 791 |
| 792 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 792 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |