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 11 matching lines...) Expand all Loading... |
22 #include "content/common/content_export.h" | 22 #include "content/common/content_export.h" |
23 #include "content/public/browser/notification_observer.h" | 23 #include "content/public/browser/notification_observer.h" |
24 #include "content/public/browser/notification_registrar.h" | 24 #include "content/public/browser/notification_registrar.h" |
25 #include "content/public/browser/web_contents.h" | 25 #include "content/public/browser/web_contents.h" |
26 #include "content/public/common/renderer_preferences.h" | 26 #include "content/public/common/renderer_preferences.h" |
27 #include "content/public/common/three_d_api_types.h" | 27 #include "content/public/common/three_d_api_types.h" |
28 #include "net/base/load_states.h" | 28 #include "net/base/load_states.h" |
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
30 #include "ui/gfx/rect_f.h" | 30 #include "ui/gfx/rect_f.h" |
31 #include "ui/gfx/size.h" | 31 #include "ui/gfx/size.h" |
| 32 #include "ui/gfx/vector2d.h" |
32 #include "webkit/glue/resource_type.h" | 33 #include "webkit/glue/resource_type.h" |
33 | 34 |
34 struct BrowserPluginHostMsg_ResizeGuest_Params; | 35 struct BrowserPluginHostMsg_ResizeGuest_Params; |
35 struct ViewHostMsg_DateTimeDialogValue_Params; | 36 struct ViewHostMsg_DateTimeDialogValue_Params; |
36 struct ViewMsg_PostMessage_Params; | 37 struct ViewMsg_PostMessage_Params; |
37 | 38 |
38 namespace content { | 39 namespace content { |
39 class BrowserPluginEmbedder; | 40 class BrowserPluginEmbedder; |
40 class BrowserPluginGuest; | 41 class BrowserPluginGuest; |
41 class BrowserPluginGuestManager; | 42 class BrowserPluginGuestManager; |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 | 558 |
558 void OnRegisterProtocolHandler(const std::string& protocol, | 559 void OnRegisterProtocolHandler(const std::string& protocol, |
559 const GURL& url, | 560 const GURL& url, |
560 const string16& title, | 561 const string16& title, |
561 bool user_gesture); | 562 bool user_gesture); |
562 void OnFindReply(int request_id, | 563 void OnFindReply(int request_id, |
563 int number_of_matches, | 564 int number_of_matches, |
564 const gfx::Rect& selection_rect, | 565 const gfx::Rect& selection_rect, |
565 int active_match_ordinal, | 566 int active_match_ordinal, |
566 bool final_update); | 567 bool final_update); |
| 568 void OnDidProgrammaticallyScroll(const gfx::Vector2d& scroll_point); |
567 #if defined(OS_ANDROID) | 569 #if defined(OS_ANDROID) |
568 void OnFindMatchRectsReply(int version, | 570 void OnFindMatchRectsReply(int version, |
569 const std::vector<gfx::RectF>& rects, | 571 const std::vector<gfx::RectF>& rects, |
570 const gfx::RectF& active_rect); | 572 const gfx::RectF& active_rect); |
571 | 573 |
572 void OnOpenDateTimeDialog( | 574 void OnOpenDateTimeDialog( |
573 const ViewHostMsg_DateTimeDialogValue_Params& value); | 575 const ViewHostMsg_DateTimeDialogValue_Params& value); |
574 #endif | 576 #endif |
575 void OnCrashedPlugin(const base::FilePath& plugin_path, | 577 void OnCrashedPlugin(const base::FilePath& plugin_path, |
576 base::ProcessId plugin_pid); | 578 base::ProcessId plugin_pid); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 // Maps the ids of pending image downloads to their callbacks | 911 // Maps the ids of pending image downloads to their callbacks |
910 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; | 912 typedef std::map<int, ImageDownloadCallback> ImageDownloadMap; |
911 ImageDownloadMap image_download_map_; | 913 ImageDownloadMap image_download_map_; |
912 | 914 |
913 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); | 915 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); |
914 }; | 916 }; |
915 | 917 |
916 } // namespace content | 918 } // namespace content |
917 | 919 |
918 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 920 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
OLD | NEW |