OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H_ |
6 #define CHROME_RENDERER_RENDER_WIDGET_H_ | 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "app/surface/transport_dib.h" | 10 #include "app/surface/transport_dib.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void OnMouseCaptureLost(); | 159 void OnMouseCaptureLost(); |
160 virtual void OnSetFocus(bool enable); | 160 virtual void OnSetFocus(bool enable); |
161 void OnSetInputMethodActive(bool is_active); | 161 void OnSetInputMethodActive(bool is_active); |
162 void OnImeSetComposition( | 162 void OnImeSetComposition( |
163 const string16& text, | 163 const string16& text, |
164 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 164 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
165 int selection_start, | 165 int selection_start, |
166 int selection_end); | 166 int selection_end); |
167 void OnImeConfirmComposition(); | 167 void OnImeConfirmComposition(); |
168 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, | 168 void OnMsgPaintAtSize(const TransportDIB::Handle& dib_id, |
| 169 int tag, |
169 const gfx::Size& page_size, | 170 const gfx::Size& page_size, |
170 const gfx::Size& desired_size); | 171 const gfx::Size& desired_size); |
171 void OnMsgRepaint(const gfx::Size& size_to_paint); | 172 void OnMsgRepaint(const gfx::Size& size_to_paint); |
172 void OnSetTextDirection(WebKit::WebTextDirection direction); | 173 void OnSetTextDirection(WebKit::WebTextDirection direction); |
173 | 174 |
174 // Override point to notify derived classes that a paint has happened. | 175 // Override point to notify derived classes that a paint has happened. |
175 // DidInitiatePaint happens when we've generated a new bitmap and sent it to | 176 // DidInitiatePaint happens when we've generated a new bitmap and sent it to |
176 // the browser. DidFlushPaint happens once we've received the ACK that the | 177 // the browser. DidFlushPaint happens once we've received the ACK that the |
177 // screen has actually been updated. | 178 // screen has actually been updated. |
178 virtual void DidInitiatePaint() {} | 179 virtual void DidInitiatePaint() {} |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Indicates if the next sequence of Char events should be suppressed or not. | 318 // Indicates if the next sequence of Char events should be suppressed or not. |
318 bool suppress_next_char_events_; | 319 bool suppress_next_char_events_; |
319 | 320 |
320 // Set to true if painting to the window is handled by the GPU process. | 321 // Set to true if painting to the window is handled by the GPU process. |
321 bool is_gpu_rendering_active_; | 322 bool is_gpu_rendering_active_; |
322 | 323 |
323 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 324 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
324 }; | 325 }; |
325 | 326 |
326 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 327 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |