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_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/id_map.h" | 16 #include "base/id_map.h" |
17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "base/process.h" | 20 #include "base/process.h" |
21 #include "base/timer.h" | 21 #include "base/timer.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "cc/input/top_controls_state.h" |
23 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
24 #include "content/common/drag_event_source_info.h" | 25 #include "content/common/drag_event_source_info.h" |
25 #include "content/common/edit_command.h" | 26 #include "content/common/edit_command.h" |
26 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
27 #include "content/common/navigation_gesture.h" | 28 #include "content/common/navigation_gesture.h" |
28 #include "content/common/view_message_enums.h" | 29 #include "content/common/view_message_enums.h" |
29 #include "content/public/common/javascript_message_type.h" | 30 #include "content/public/common/javascript_message_type.h" |
30 #include "content/public/common/page_zoom.h" | 31 #include "content/public/common/page_zoom.h" |
31 #include "content/public/common/referrer.h" | 32 #include "content/public/common/referrer.h" |
32 #include "content/public/common/renderer_preferences.h" | 33 #include "content/public/common/renderer_preferences.h" |
(...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 void OnJavaBridgeInit(); | 1038 void OnJavaBridgeInit(); |
1038 | 1039 |
1039 void OnDisownOpener(); | 1040 void OnDisownOpener(); |
1040 | 1041 |
1041 #if defined(OS_ANDROID) | 1042 #if defined(OS_ANDROID) |
1042 void OnActivateNearestFindResult(int request_id, float x, float y); | 1043 void OnActivateNearestFindResult(int request_id, float x, float y); |
1043 void OnFindMatchRects(int current_version); | 1044 void OnFindMatchRects(int current_version); |
1044 void OnSelectPopupMenuItems(bool canceled, | 1045 void OnSelectPopupMenuItems(bool canceled, |
1045 const std::vector<int>& selected_indices); | 1046 const std::vector<int>& selected_indices); |
1046 void OnUndoScrollFocusedEditableNodeIntoRect(); | 1047 void OnUndoScrollFocusedEditableNodeIntoRect(); |
1047 void OnUpdateTopControlsState(bool enable_hiding, | 1048 void OnUpdateTopControlsState(cc::TopControlsState constraints, |
1048 bool enable_showing, | 1049 cc::TopControlsState current, |
1049 bool animate); | 1050 bool animate); |
1050 #elif defined(OS_MACOSX) | 1051 #elif defined(OS_MACOSX) |
1051 void OnCopyToFindPboard(); | 1052 void OnCopyToFindPboard(); |
1052 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); | 1053 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
1053 void OnSelectPopupMenuItem(int selected_index); | 1054 void OnSelectPopupMenuItem(int selected_index); |
1054 void OnSetInLiveResize(bool in_live_resize); | 1055 void OnSetInLiveResize(bool in_live_resize); |
1055 void OnSetWindowVisibility(bool visible); | 1056 void OnSetWindowVisibility(bool visible); |
1056 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 1057 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
1057 const gfx::Rect& view_frame); | 1058 const gfx::Rect& view_frame); |
1058 #endif | 1059 #endif |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 // use the Observer interface to filter IPC messages and receive frame change | 1530 // use the Observer interface to filter IPC messages and receive frame change |
1530 // notifications. | 1531 // notifications. |
1531 // --------------------------------------------------------------------------- | 1532 // --------------------------------------------------------------------------- |
1532 | 1533 |
1533 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1534 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1534 }; | 1535 }; |
1535 | 1536 |
1536 } // namespace content | 1537 } // namespace content |
1537 | 1538 |
1538 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1539 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |