OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/string16.h" | 12 #include "base/string16.h" |
13 #include "chrome/common/view_types.h" | 13 #include "chrome/common/view_types.h" |
14 #include "net/base/load_states.h" | 14 #include "net/base/load_states.h" |
15 #include "webkit/api/public/WebDragOperation.h" | 15 #include "webkit/api/public/WebDragOperation.h" |
16 #include "webkit/glue/window_open_disposition.h" | 16 #include "webkit/glue/window_open_disposition.h" |
17 | 17 |
18 class AutofillForm; | 18 class AutofillForm; |
19 struct ContextMenuParams; | 19 struct ContextMenuParams; |
20 class FilePath; | 20 class FilePath; |
21 class GURL; | 21 class GURL; |
| 22 class Value; |
22 struct NativeWebKeyboardEvent; | 23 struct NativeWebKeyboardEvent; |
23 class NavigationEntry; | 24 class NavigationEntry; |
24 class Profile; | 25 class Profile; |
25 struct RendererPreferences; | 26 struct RendererPreferences; |
26 class RenderProcessHost; | 27 class RenderProcessHost; |
27 class RenderViewHost; | 28 class RenderViewHost; |
28 class ResourceRequestDetails; | 29 class ResourceRequestDetails; |
29 class SkBitmap; | 30 class SkBitmap; |
30 class TabContents; | 31 class TabContents; |
31 struct ThumbnailScore; | 32 struct ThumbnailScore; |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 WindowOpenDisposition disposition) {} | 461 WindowOpenDisposition disposition) {} |
461 | 462 |
462 // A DOM automation operation completed. The result of the operation is | 463 // A DOM automation operation completed. The result of the operation is |
463 // expressed in a json string. | 464 // expressed in a json string. |
464 virtual void DomOperationResponse(const std::string& json_string, | 465 virtual void DomOperationResponse(const std::string& json_string, |
465 int automation_id) {} | 466 int automation_id) {} |
466 | 467 |
467 // A message was sent from HTML-based UI. | 468 // A message was sent from HTML-based UI. |
468 // By default we ignore such messages. | 469 // By default we ignore such messages. |
469 virtual void ProcessDOMUIMessage(const std::string& message, | 470 virtual void ProcessDOMUIMessage(const std::string& message, |
470 const std::string& content, | 471 const Value* content, |
471 int request_id, | 472 int request_id, |
472 bool has_callback) {} | 473 bool has_callback) {} |
473 | 474 |
474 // A message for external host. By default we ignore such messages. | 475 // A message for external host. By default we ignore such messages. |
475 // |receiver| can be a receiving script and |message| is any | 476 // |receiver| can be a receiving script and |message| is any |
476 // arbitrary string that makes sense to the receiver. | 477 // arbitrary string that makes sense to the receiver. |
477 virtual void ProcessExternalHostMessage(const std::string& message, | 478 virtual void ProcessExternalHostMessage(const std::string& message, |
478 const std::string& origin, | 479 const std::string& origin, |
479 const std::string& target) {} | 480 const std::string& target) {} |
480 | 481 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 virtual bool IsExternalTabContainer() const; | 551 virtual bool IsExternalTabContainer() const; |
551 | 552 |
552 // The RenderView has inserted one css file into page. | 553 // The RenderView has inserted one css file into page. |
553 virtual void DidInsertCSS() {} | 554 virtual void DidInsertCSS() {} |
554 | 555 |
555 // A different node in the page got focused. | 556 // A different node in the page got focused. |
556 virtual void FocusedNodeChanged() {} | 557 virtual void FocusedNodeChanged() {} |
557 }; | 558 }; |
558 | 559 |
559 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 560 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |