| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
| 13 #include "base/gfx/rect.h" | 13 #include "base/gfx/rect.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "chrome/common/native_web_keyboard_event.h" |
| 15 #include "net/base/load_states.h" | 16 #include "net/base/load_states.h" |
| 16 #include "webkit/glue/password_form.h" | 17 #include "webkit/glue/password_form.h" |
| 17 #include "webkit/glue/webpreferences.h" | 18 #include "webkit/glue/webpreferences.h" |
| 18 #include "webkit/glue/window_open_disposition.h" | 19 #include "webkit/glue/window_open_disposition.h" |
| 19 | 20 |
| 20 class AutofillForm; | 21 class AutofillForm; |
| 21 class NavigationEntry; | 22 class NavigationEntry; |
| 22 class Profile; | 23 class Profile; |
| 23 class RenderProcessHost; | 24 class RenderProcessHost; |
| 24 class RenderViewHost; | 25 class RenderViewHost; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // |is_drop_target| is true if the mouse is over a valid drop target. | 105 // |is_drop_target| is true if the mouse is over a valid drop target. |
| 105 virtual void UpdateDragCursor(bool is_drop_target) = 0; | 106 virtual void UpdateDragCursor(bool is_drop_target) = 0; |
| 106 | 107 |
| 107 // Callback to inform the browser it should take back focus. If reverse is | 108 // Callback to inform the browser it should take back focus. If reverse is |
| 108 // true, it means the focus was retrieved by doing a Shift-Tab. | 109 // true, it means the focus was retrieved by doing a Shift-Tab. |
| 109 virtual void TakeFocus(bool reverse) = 0; | 110 virtual void TakeFocus(bool reverse) = 0; |
| 110 | 111 |
| 111 // Callback to inform the browser that the renderer did not process the | 112 // Callback to inform the browser that the renderer did not process the |
| 112 // specified events. This gives an opportunity to the browser to process the | 113 // specified events. This gives an opportunity to the browser to process the |
| 113 // event (used for keyboard shortcuts). | 114 // event (used for keyboard shortcuts). |
| 114 virtual void HandleKeyboardEvent(const WebKeyboardEvent& event) = 0; | 115 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event) = 0; |
| 115 | 116 |
| 116 // Forwards message to DevToolsClient in developer tools window open for | 117 // Forwards message to DevToolsClient in developer tools window open for |
| 117 // this page. | 118 // this page. |
| 118 virtual void ForwardMessageToDevToolsClient( | 119 virtual void ForwardMessageToDevToolsClient( |
| 119 const IPC::Message& message) = 0; | 120 const IPC::Message& message) = 0; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 // Interface for saving web pages. | 123 // Interface for saving web pages. |
| 123 class Save { | 124 class Save { |
| 124 public: | 125 public: |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 402 |
| 402 // A find operation in the current page completed. | 403 // A find operation in the current page completed. |
| 403 virtual void OnFindReply(int request_id, | 404 virtual void OnFindReply(int request_id, |
| 404 int number_of_matches, | 405 int number_of_matches, |
| 405 const gfx::Rect& selection_rect, | 406 const gfx::Rect& selection_rect, |
| 406 int active_match_ordinal, | 407 int active_match_ordinal, |
| 407 bool final_update) { } | 408 bool final_update) { } |
| 408 }; | 409 }; |
| 409 | 410 |
| 410 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 411 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |