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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class RenderWidgetHostViewPort; | 55 class RenderWidgetHostViewPort; |
56 class SavePackage; | 56 class SavePackage; |
57 class SessionStorageNamespaceImpl; | 57 class SessionStorageNamespaceImpl; |
58 class SiteInstance; | 58 class SiteInstance; |
59 class TestWebContents; | 59 class TestWebContents; |
60 class WebContentsDelegate; | 60 class WebContentsDelegate; |
61 class WebContentsImpl; | 61 class WebContentsImpl; |
62 class WebContentsObserver; | 62 class WebContentsObserver; |
63 class WebContentsViewPort; | 63 class WebContentsViewPort; |
64 class WebContentsViewDelegate; | 64 class WebContentsViewDelegate; |
| 65 struct ColorSuggestion; |
65 struct FaviconURL; | 66 struct FaviconURL; |
66 struct LoadNotificationDetails; | 67 struct LoadNotificationDetails; |
67 | 68 |
68 // Factory function for the implementations that content knows about. Takes | 69 // Factory function for the implementations that content knows about. Takes |
69 // ownership of |delegate|. | 70 // ownership of |delegate|. |
70 WebContentsViewPort* CreateWebContentsView( | 71 WebContentsViewPort* CreateWebContentsView( |
71 WebContentsImpl* web_contents, | 72 WebContentsImpl* web_contents, |
72 WebContentsViewDelegate* delegate, | 73 WebContentsViewDelegate* delegate, |
73 RenderViewHostDelegateView** render_view_host_delegate_view); | 74 RenderViewHostDelegateView** render_view_host_delegate_view); |
74 | 75 |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 void OnFindMatchRectsReply(int version, | 606 void OnFindMatchRectsReply(int version, |
606 const std::vector<gfx::RectF>& rects, | 607 const std::vector<gfx::RectF>& rects, |
607 const gfx::RectF& active_rect); | 608 const gfx::RectF& active_rect); |
608 | 609 |
609 void OnOpenDateTimeDialog( | 610 void OnOpenDateTimeDialog( |
610 const ViewHostMsg_DateTimeDialogValue_Params& value); | 611 const ViewHostMsg_DateTimeDialogValue_Params& value); |
611 #endif | 612 #endif |
612 void OnCrashedPlugin(const base::FilePath& plugin_path, | 613 void OnCrashedPlugin(const base::FilePath& plugin_path, |
613 base::ProcessId plugin_pid); | 614 base::ProcessId plugin_pid); |
614 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); | 615 void OnAppCacheAccessed(const GURL& manifest_url, bool blocked_by_policy); |
615 void OnOpenColorChooser(int color_chooser_id, SkColor color); | 616 void OnOpenColorChooser(int color_chooser_id, |
| 617 SkColor color, |
| 618 const std::vector<ColorSuggestion>& suggestions); |
616 void OnEndColorChooser(int color_chooser_id); | 619 void OnEndColorChooser(int color_chooser_id); |
617 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); | 620 void OnSetSelectedColorInColorChooser(int color_chooser_id, SkColor color); |
618 void OnPepperPluginHung(int plugin_child_id, | 621 void OnPepperPluginHung(int plugin_child_id, |
619 const base::FilePath& path, | 622 const base::FilePath& path, |
620 bool is_hung); | 623 bool is_hung); |
621 void OnWebUISend(const GURL& source_url, | 624 void OnWebUISend(const GURL& source_url, |
622 const std::string& name, | 625 const std::string& name, |
623 const base::ListValue& args); | 626 const base::ListValue& args); |
624 void OnRequestPpapiBrokerPermission(int routing_id, | 627 void OnRequestPpapiBrokerPermission(int routing_id, |
625 const GURL& url, | 628 const GURL& url, |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 // Maps the ids of pending image downloads to their callbacks | 967 // Maps the ids of pending image downloads to their callbacks |
965 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 968 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
966 ImageDownloadMap image_download_map_; | 969 ImageDownloadMap image_download_map_; |
967 | 970 |
968 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 971 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
969 }; | 972 }; |
970 | 973 |
971 } // namespace content | 974 } // namespace content |
972 | 975 |
973 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 976 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |