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 <deque> | 8 #include <deque> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 ResizeAck resize_ack); | 228 ResizeAck resize_ack); |
229 | 229 |
230 // RenderWidget IPC message handlers | 230 // RenderWidget IPC message handlers |
231 void OnClose(); | 231 void OnClose(); |
232 void OnCreatingNewAck(gfx::NativeViewId parent); | 232 void OnCreatingNewAck(gfx::NativeViewId parent); |
233 virtual void OnResize(const gfx::Size& new_size, | 233 virtual void OnResize(const gfx::Size& new_size, |
234 const gfx::Rect& resizer_rect, | 234 const gfx::Rect& resizer_rect, |
235 bool is_fullscreen); | 235 bool is_fullscreen); |
236 void OnChangeResizeRect(const gfx::Rect& resizer_rect); | 236 void OnChangeResizeRect(const gfx::Rect& resizer_rect); |
237 virtual void OnWasHidden(); | 237 virtual void OnWasHidden(); |
238 virtual void OnWasRestored(bool needs_repainting); | 238 virtual void OnWasShown(bool needs_repainting); |
239 virtual void OnWasSwappedOut(); | 239 virtual void OnWasSwappedOut(); |
240 void OnUpdateRectAck(); | 240 void OnUpdateRectAck(); |
241 void OnCreateVideoAck(int32 video_id); | 241 void OnCreateVideoAck(int32 video_id); |
242 void OnUpdateVideoAck(int32 video_id); | 242 void OnUpdateVideoAck(int32 video_id); |
243 void OnRequestMoveAck(); | 243 void OnRequestMoveAck(); |
244 void OnHandleInputEvent(const IPC::Message& message); | 244 void OnHandleInputEvent(const IPC::Message& message); |
245 void OnMouseCaptureLost(); | 245 void OnMouseCaptureLost(); |
246 virtual void OnSetFocus(bool enable); | 246 virtual void OnSetFocus(bool enable); |
247 void OnSetInputMethodActive(bool is_active); | 247 void OnSetInputMethodActive(bool is_active); |
248 virtual void OnImeSetComposition( | 248 virtual void OnImeSetComposition( |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 WebKit::WebScreenInfo screen_info_; | 558 WebKit::WebScreenInfo screen_info_; |
559 | 559 |
560 // The device scale factor. This value is computed from the DPI entries in | 560 // The device scale factor. This value is computed from the DPI entries in |
561 // |screen_info_| on some platforms, and defaults to 1 on other platforms. | 561 // |screen_info_| on some platforms, and defaults to 1 on other platforms. |
562 float device_scale_factor_; | 562 float device_scale_factor_; |
563 | 563 |
564 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 564 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
565 }; | 565 }; |
566 | 566 |
567 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 567 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |