| 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> |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 // Sends a message and runs a nested message loop. | 590 // Sends a message and runs a nested message loop. |
| 591 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); | 591 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
| 592 | 592 |
| 593 // IPC message handlers ------------------------------------------------------ | 593 // IPC message handlers ------------------------------------------------------ |
| 594 // | 594 // |
| 595 // The documentation for these functions should be in | 595 // The documentation for these functions should be in |
| 596 // content/common/*_messages.h for the message that the function is handling. | 596 // content/common/*_messages.h for the message that the function is handling. |
| 597 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 597 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
| 598 void OnMoveCaret(const gfx::Point& point); | 598 void OnMoveCaret(const gfx::Point& point); |
| 599 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 599 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
| 600 void OnSmoothScroll(int target_x, int target_y, long duration_ms); |
| 600 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 601 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
| 601 void OnAllowBindings(int enabled_bindings_flags); | 602 void OnAllowBindings(int enabled_bindings_flags); |
| 602 void OnAllowScriptToClose(bool script_can_close); | 603 void OnAllowScriptToClose(bool script_can_close); |
| 603 void OnCancelDownload(int32 download_id); | 604 void OnCancelDownload(int32 download_id); |
| 604 void OnClearFocusedElement(); | 605 void OnClearFocusedElement(); |
| 605 void OnClosePage(); | 606 void OnClosePage(); |
| 606 void OnClose(); | 607 void OnClose(); |
| 607 | 608 |
| 608 void OnShowContextMenu(ui::MenuSourceType source_type, | 609 void OnShowContextMenu(ui::MenuSourceType source_type, |
| 609 const gfx::Point& location); | 610 const gfx::Point& location); |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 // use the Observer interface to filter IPC messages and receive frame change | 1019 // use the Observer interface to filter IPC messages and receive frame change |
| 1019 // notifications. | 1020 // notifications. |
| 1020 // --------------------------------------------------------------------------- | 1021 // --------------------------------------------------------------------------- |
| 1021 | 1022 |
| 1022 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1023 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1023 }; | 1024 }; |
| 1024 | 1025 |
| 1025 } // namespace content | 1026 } // namespace content |
| 1026 | 1027 |
| 1027 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1028 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |