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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 #include <queue> | 11 #include <queue> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
| 20 #include "base/observer_list.h" |
20 #include "base/process_util.h" | 21 #include "base/process_util.h" |
21 #include "base/string16.h" | 22 #include "base/string16.h" |
22 #include "base/time.h" | 23 #include "base/time.h" |
23 #include "base/timer.h" | 24 #include "base/timer.h" |
24 #include "build/build_config.h" | 25 #include "build/build_config.h" |
25 #include "content/common/view_message_enums.h" | 26 #include "content/common/view_message_enums.h" |
26 #include "content/port/common/input_event_ack_state.h" | 27 #include "content/port/common/input_event_ack_state.h" |
27 #include "content/public/browser/render_widget_host.h" | 28 #include "content/public/browser/render_widget_host.h" |
28 #include "content/public/common/page_zoom.h" | 29 #include "content/public/common/page_zoom.h" |
29 #include "ipc/ipc_listener.h" | 30 #include "ipc/ipc_listener.h" |
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 // (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK. | 771 // (Similar to |mouse_move_pending_|.) True while waiting for MoveCaret_ACK. |
771 bool move_caret_pending_; | 772 bool move_caret_pending_; |
772 | 773 |
773 // (Similar to |next_mouse_move_|.) The next MoveCaret to send, if any. | 774 // (Similar to |next_mouse_move_|.) The next MoveCaret to send, if any. |
774 scoped_ptr<gfx::Point> next_move_caret_; | 775 scoped_ptr<gfx::Point> next_move_caret_; |
775 | 776 |
776 // The time when an input event was sent to the RenderWidget. | 777 // The time when an input event was sent to the RenderWidget. |
777 base::TimeTicks input_event_start_time_; | 778 base::TimeTicks input_event_start_time_; |
778 | 779 |
779 // Keyboard event listeners. | 780 // Keyboard event listeners. |
780 std::list<KeyboardListener*> keyboard_listeners_; | 781 ObserverList<KeyboardListener> keyboard_listeners_; |
781 | 782 |
782 // If true, then we should repaint when restoring even if we have a | 783 // If true, then we should repaint when restoring even if we have a |
783 // backingstore. This flag is set to true if we receive a paint message | 784 // backingstore. This flag is set to true if we receive a paint message |
784 // while is_hidden_ to true. Even though we tell the render widget to hide | 785 // while is_hidden_ to true. Even though we tell the render widget to hide |
785 // itself, a paint message could already be in flight at that point. | 786 // itself, a paint message could already be in flight at that point. |
786 bool needs_repainting_on_restore_; | 787 bool needs_repainting_on_restore_; |
787 | 788 |
788 // This is true if the renderer is currently unresponsive. | 789 // This is true if the renderer is currently unresponsive. |
789 bool is_unresponsive_; | 790 bool is_unresponsive_; |
790 | 791 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 | 877 |
877 // List of callbacks for pending snapshot requests to the renderer. | 878 // List of callbacks for pending snapshot requests to the renderer. |
878 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; | 879 std::queue<base::Callback<void(bool, const SkBitmap&)> > pending_snapshots_; |
879 | 880 |
880 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 881 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
881 }; | 882 }; |
882 | 883 |
883 } // namespace content | 884 } // namespace content |
884 | 885 |
885 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 886 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |