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 |
11 #include <deque> | 11 #include <deque> |
12 #include <map> | 12 #include <map> |
13 #include <memory> | 13 #include <memory> |
14 #include <queue> | 14 #include <queue> |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/callback.h" | 18 #include "base/callback.h" |
19 #include "base/compiler_specific.h" | 19 #include "base/compiler_specific.h" |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "base/memory/ref_counted.h" | 21 #include "base/memory/ref_counted.h" |
22 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
23 #include "base/observer_list.h" | 23 #include "base/observer_list.h" |
24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
25 #include "build/build_config.h" | 25 #include "build/build_config.h" |
26 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
27 #include "content/common/cursors/webcursor.h" | 27 #include "content/common/cursors/webcursor.h" |
28 #include "content/common/drag_event_source_info.h" | 28 #include "content/common/drag_event_source_info.h" |
29 #include "content/common/edit_command.h" | 29 #include "content/common/edit_command.h" |
| 30 #include "content/common/features.h" |
30 #include "content/common/input/synthetic_gesture_params.h" | 31 #include "content/common/input/synthetic_gesture_params.h" |
31 #include "content/public/common/drop_data.h" | 32 #include "content/public/common/drop_data.h" |
32 #include "content/public/common/screen_info.h" | 33 #include "content/public/common/screen_info.h" |
33 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega
te.h" | 34 #include "content/renderer/devtools/render_widget_screen_metrics_emulator_delega
te.h" |
34 #include "content/renderer/gpu/render_widget_compositor_delegate.h" | 35 #include "content/renderer/gpu/render_widget_compositor_delegate.h" |
35 #include "content/renderer/input/render_widget_input_handler.h" | 36 #include "content/renderer/input/render_widget_input_handler.h" |
36 #include "content/renderer/input/render_widget_input_handler_delegate.h" | 37 #include "content/renderer/input/render_widget_input_handler_delegate.h" |
37 #include "content/renderer/message_delivery_policy.h" | 38 #include "content/renderer/message_delivery_policy.h" |
38 #include "content/renderer/mouse_lock_dispatcher.h" | 39 #include "content/renderer/mouse_lock_dispatcher.h" |
39 #include "content/renderer/render_widget_mouse_lock_dispatcher.h" | 40 #include "content/renderer/render_widget_mouse_lock_dispatcher.h" |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 void NotifyOnClose(); | 461 void NotifyOnClose(); |
461 | 462 |
462 gfx::Size GetSizeForWebWidget() const; | 463 gfx::Size GetSizeForWebWidget() const; |
463 virtual void ResizeWebWidget(); | 464 virtual void ResizeWebWidget(); |
464 | 465 |
465 // Close the underlying WebWidget. | 466 // Close the underlying WebWidget. |
466 virtual void Close(); | 467 virtual void Close(); |
467 | 468 |
468 // Used to force the size of a window when running layout tests. | 469 // Used to force the size of a window when running layout tests. |
469 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); | 470 void SetWindowRectSynchronously(const gfx::Rect& new_window_rect); |
470 #if defined(USE_EXTERNAL_POPUP_MENU) | 471 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
471 void SetExternalPopupOriginAdjustmentsForEmulation( | 472 void SetExternalPopupOriginAdjustmentsForEmulation( |
472 ExternalPopupMenu* popup, | 473 ExternalPopupMenu* popup, |
473 RenderWidgetScreenMetricsEmulator* emulator); | 474 RenderWidgetScreenMetricsEmulator* emulator); |
474 #endif | 475 #endif |
475 | 476 |
476 // RenderWidget IPC message handlers | 477 // RenderWidget IPC message handlers |
477 void OnHandleInputEvent( | 478 void OnHandleInputEvent( |
478 const blink::WebInputEvent* event, | 479 const blink::WebInputEvent* event, |
479 const std::vector<const blink::WebInputEvent*>& coalesced_events, | 480 const std::vector<const blink::WebInputEvent*>& coalesced_events, |
480 const ui::LatencyInfo& latency_info, | 481 const ui::LatencyInfo& latency_info, |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 uint32_t current_content_source_id_; | 865 uint32_t current_content_source_id_; |
865 | 866 |
866 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 867 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
867 | 868 |
868 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 869 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
869 }; | 870 }; |
870 | 871 |
871 } // namespace content | 872 } // namespace content |
872 | 873 |
873 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 874 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |