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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 void NotifyOnClose(); | 416 void NotifyOnClose(); |
417 | 417 |
418 gfx::Size GetSizeForWebWidget() const; | 418 gfx::Size GetSizeForWebWidget() const; |
419 virtual void ResizeWebWidget(); | 419 virtual void ResizeWebWidget(); |
420 | 420 |
421 // Close the underlying WebWidget. | 421 // Close the underlying WebWidget. |
422 virtual void Close(); | 422 virtual void Close(); |
423 | 423 |
424 // Used to force the size of a window when running layout tests. | 424 // Used to force the size of a window when running layout tests. |
425 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); | 425 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); |
426 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 426 #if defined(USE_EXTERNAL_POPUP_MENU) |
427 void SetExternalPopupOriginAdjustmentsForEmulation( | 427 void SetExternalPopupOriginAdjustmentsForEmulation( |
428 ExternalPopupMenu* popup, | 428 ExternalPopupMenu* popup, |
429 RenderWidgetScreenMetricsEmulator* emulator); | 429 RenderWidgetScreenMetricsEmulator* emulator); |
430 #endif | 430 #endif |
431 | 431 |
432 // RenderWidget IPC message handlers | 432 // RenderWidget IPC message handlers |
433 void OnHandleInputEvent(const blink::WebInputEvent* event, | 433 void OnHandleInputEvent(const blink::WebInputEvent* event, |
434 const ui::LatencyInfo& latency_info, | 434 const ui::LatencyInfo& latency_info, |
435 InputEventDispatchType dispatch_type); | 435 InputEventDispatchType dispatch_type); |
436 void OnCursorVisibilityChange(bool is_visible); | 436 void OnCursorVisibilityChange(bool is_visible); |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
765 | 765 |
766 // Indicates whether this widget has focus. | 766 // Indicates whether this widget has focus. |
767 bool has_focus_; | 767 bool has_focus_; |
768 | 768 |
769 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 769 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
770 }; | 770 }; |
771 | 771 |
772 } // namespace content | 772 } // namespace content |
773 | 773 |
774 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 774 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |