| 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 // Called when the device scale factor is changed, or the layer tree is | 461 // Called when the device scale factor is changed, or the layer tree is |
| 462 // initialized. | 462 // initialized. |
| 463 virtual void OnDeviceScaleFactorChanged(); | 463 virtual void OnDeviceScaleFactorChanged(); |
| 464 | 464 |
| 465 void OnRepaint(gfx::Size size_to_paint); | 465 void OnRepaint(gfx::Size size_to_paint); |
| 466 void OnSyntheticGestureCompleted(); | 466 void OnSyntheticGestureCompleted(); |
| 467 void OnSetTextDirection(blink::WebTextDirection direction); | 467 void OnSetTextDirection(blink::WebTextDirection direction); |
| 468 void OnGetFPS(); | 468 void OnGetFPS(); |
| 469 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 469 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
| 470 const gfx::Rect& window_screen_rect); | 470 const gfx::Rect& window_screen_rect); |
| 471 void OnUpdateWindowScreenRect(const gfx::Rect& window_screen_rect); |
| 471 void OnShowImeIfNeeded(); | 472 void OnShowImeIfNeeded(); |
| 472 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); | 473 void OnSetSurfaceIdNamespace(uint32_t surface_id_namespace); |
| 473 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); | 474 void OnHandleCompositorProto(const std::vector<uint8_t>& proto); |
| 474 | 475 |
| 475 #if defined(OS_ANDROID) | 476 #if defined(OS_ANDROID) |
| 476 // Called when we send IME event that expects an ACK. | 477 // Called when we send IME event that expects an ACK. |
| 477 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); | 478 void OnImeEventSentForAck(const blink::WebTextInputInfo& info); |
| 478 | 479 |
| 479 // Called by the browser process for every required IME acknowledgement. | 480 // Called by the browser process for every required IME acknowledgement. |
| 480 void OnImeEventAck(); | 481 void OnImeEventAck(); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 private: | 784 private: |
| 784 // When emulated, this returns original device scale factor. | 785 // When emulated, this returns original device scale factor. |
| 785 float GetOriginalDeviceScaleFactor() const; | 786 float GetOriginalDeviceScaleFactor() const; |
| 786 | 787 |
| 787 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 788 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 788 }; | 789 }; |
| 789 | 790 |
| 790 } // namespace content | 791 } // namespace content |
| 791 | 792 |
| 792 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 793 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |