| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/time.h" | 14 #include "base/time.h" |
| 15 #include "content/renderer/paint_aggregator.h" | 15 #include "content/renderer/paint_aggregator.h" |
| 16 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" | 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidgetClient.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidgetClient.h" |
| 22 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
| 23 #include "ui/base/ime/text_input_type.h" | 24 #include "ui/base/ime/text_input_type.h" |
| 24 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
| 25 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
| 26 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
| 27 #include "ui/gfx/surface/transport_dib.h" | 28 #include "ui/gfx/surface/transport_dib.h" |
| 28 #include "webkit/glue/webcursor.h" | 29 #include "webkit/glue/webcursor.h" |
| 29 | 30 |
| 30 class RenderThreadBase; | 31 class RenderThreadBase; |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 void set_next_paint_is_resize_ack(); | 272 void set_next_paint_is_resize_ack(); |
| 272 void set_next_paint_is_restore_ack(); | 273 void set_next_paint_is_restore_ack(); |
| 273 void set_next_paint_is_repaint_ack(); | 274 void set_next_paint_is_repaint_ack(); |
| 274 | 275 |
| 275 // Checks if the input method state and caret position have been changed. | 276 // Checks if the input method state and caret position have been changed. |
| 276 // If they are changed, the new value will be sent to the browser process. | 277 // If they are changed, the new value will be sent to the browser process. |
| 277 void UpdateInputMethod(); | 278 void UpdateInputMethod(); |
| 278 | 279 |
| 279 // Override point to obtain that the current input method state and caret | 280 // Override point to obtain that the current input method state and caret |
| 280 // position. | 281 // position. |
| 281 virtual ui::TextInputType GetTextInputType(); | 282 virtual WebKit::WebTextInputType GetTextInputType(); |
| 283 virtual WebKit::WebRect GetCaretBounds(); |
| 282 | 284 |
| 283 // Override point to obtain that the current input method state about | 285 // Override point to obtain that the current input method state about |
| 284 // composition text. | 286 // composition text. |
| 285 virtual bool CanComposeInline(); | 287 virtual bool CanComposeInline(); |
| 286 | 288 |
| 287 // Tells the renderer it does not have focus. Used to prevent us from getting | 289 // Tells the renderer it does not have focus. Used to prevent us from getting |
| 288 // the focus on our own when the browser did not focus us. | 290 // the focus on our own when the browser did not focus us. |
| 289 void ClearFocus(); | 291 void ClearFocus(); |
| 290 | 292 |
| 291 // Set the pending window rect. | 293 // Set the pending window rect. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 bool animation_task_posted_; | 440 bool animation_task_posted_; |
| 439 bool invalidation_task_posted_; | 441 bool invalidation_task_posted_; |
| 440 | 442 |
| 441 bool has_disable_gpu_vsync_switch_; | 443 bool has_disable_gpu_vsync_switch_; |
| 442 base::TimeTicks last_do_deferred_update_time_; | 444 base::TimeTicks last_do_deferred_update_time_; |
| 443 | 445 |
| 444 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 446 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 445 }; | 447 }; |
| 446 | 448 |
| 447 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 449 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |