| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 247 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
| 248 int selection_start, | 248 int selection_start, |
| 249 int selection_end); | 249 int selection_end); |
| 250 virtual void OnImeConfirmComposition( | 250 virtual void OnImeConfirmComposition( |
| 251 const string16& text, const ui::Range& replacement_range); | 251 const string16& text, const ui::Range& replacement_range); |
| 252 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, | 252 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, |
| 253 int tag, | 253 int tag, |
| 254 const gfx::Size& page_size, | 254 const gfx::Size& page_size, |
| 255 const gfx::Size& desired_size); | 255 const gfx::Size& desired_size); |
| 256 void OnMsgRepaint(const gfx::Size& size_to_paint); | 256 void OnMsgRepaint(const gfx::Size& size_to_paint); |
| 257 void OnSetDeviceScaleFactor(float device_scale_factor); | 257 virtual void OnSetDeviceScaleFactor(float device_scale_factor); |
| 258 void OnSetTextDirection(WebKit::WebTextDirection direction); | 258 void OnSetTextDirection(WebKit::WebTextDirection direction); |
| 259 void OnGetFPS(); | 259 void OnGetFPS(); |
| 260 | 260 |
| 261 // Override points to notify derived classes that a paint has happened. | 261 // Override points to notify derived classes that a paint has happened. |
| 262 // WillInitiatePaint happens when we're about to generate a new bitmap and | 262 // WillInitiatePaint happens when we're about to generate a new bitmap and |
| 263 // send it to the browser. DidInitiatePaint happens when that has completed, | 263 // send it to the browser. DidInitiatePaint happens when that has completed, |
| 264 // and subsequent rendering won't affect the painted content. DidFlushPaint | 264 // and subsequent rendering won't affect the painted content. DidFlushPaint |
| 265 // happens once we've received the ACK that the screen has been updated. | 265 // happens once we've received the ACK that the screen has been updated. |
| 266 // For a given paint operation, these overrides will always be called in the | 266 // For a given paint operation, these overrides will always be called in the |
| 267 // order WillInitiatePaint, DidInitiatePaint, DidFlushPaint. | 267 // order WillInitiatePaint, DidInitiatePaint, DidFlushPaint. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 WebKit::WebScreenInfo screen_info_; | 554 WebKit::WebScreenInfo screen_info_; |
| 555 | 555 |
| 556 // The device scale factor. This value is computed from the DPI entries in | 556 // The device scale factor. This value is computed from the DPI entries in |
| 557 // |screen_info_| on some platforms, and defaults to 1 on other platforms. | 557 // |screen_info_| on some platforms, and defaults to 1 on other platforms. |
| 558 int device_scale_factor_; | 558 int device_scale_factor_; |
| 559 | 559 |
| 560 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 560 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 561 }; | 561 }; |
| 562 | 562 |
| 563 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 563 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |