Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 414423002: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted native file changes to correct inclusion order. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/process/process.h" 16 #include "base/process/process.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "content/browser/frame_host/frame_tree.h" 18 #include "content/browser/frame_host/frame_tree.h"
19 #include "content/browser/frame_host/navigation_controller_delegate.h" 19 #include "content/browser/frame_host/navigation_controller_delegate.h"
20 #include "content/browser/frame_host/navigation_controller_impl.h" 20 #include "content/browser/frame_host/navigation_controller_impl.h"
21 #include "content/browser/frame_host/navigator_delegate.h" 21 #include "content/browser/frame_host/navigator_delegate.h"
22 #include "content/browser/frame_host/render_frame_host_delegate.h" 22 #include "content/browser/frame_host/render_frame_host_delegate.h"
23 #include "content/browser/frame_host/render_frame_host_manager.h" 23 #include "content/browser/frame_host/render_frame_host_manager.h"
24 #include "content/browser/renderer_host/render_view_host_delegate.h" 24 #include "content/browser/renderer_host/render_view_host_delegate.h"
25 #include "content/browser/renderer_host/render_widget_host_delegate.h" 25 #include "content/browser/renderer_host/render_widget_host_delegate.h"
26 #if defined(OS_ANDROID)
27 #include "content/browser/web_contents/web_contents_android.h"
sky 2014/08/07 16:17:31 Forward declare WebContentsAndroid. In the future
AKVT 2014/08/08 15:08:25 Thanks Done.
28 #endif
26 #include "content/common/accessibility_mode_enums.h" 29 #include "content/common/accessibility_mode_enums.h"
27 #include "content/common/content_export.h" 30 #include "content/common/content_export.h"
28 #include "content/public/browser/color_chooser.h" 31 #include "content/public/browser/color_chooser.h"
29 #include "content/public/browser/notification_observer.h" 32 #include "content/public/browser/notification_observer.h"
30 #include "content/public/browser/notification_registrar.h" 33 #include "content/public/browser/notification_registrar.h"
31 #include "content/public/browser/web_contents.h" 34 #include "content/public/browser/web_contents.h"
32 #include "content/public/common/page_transition_types.h" 35 #include "content/public/common/page_transition_types.h"
33 #include "content/public/common/renderer_preferences.h" 36 #include "content/public/common/renderer_preferences.h"
34 #include "content/public/common/resource_type.h" 37 #include "content/public/common/resource_type.h"
35 #include "content/public/common/three_d_api_types.h" 38 #include "content/public/common/three_d_api_types.h"
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 // Helper function to invoke WebContentsDelegate::GetSizeForNewRenderView(). 908 // Helper function to invoke WebContentsDelegate::GetSizeForNewRenderView().
906 gfx::Size GetSizeForNewRenderView(); 909 gfx::Size GetSizeForNewRenderView();
907 910
908 void OnFrameRemoved(RenderFrameHost* render_frame_host); 911 void OnFrameRemoved(RenderFrameHost* render_frame_host);
909 912
910 // Helper method that's called whenever |preferred_size_| or 913 // Helper method that's called whenever |preferred_size_| or
911 // |preferred_size_for_capture_| changes, to propagate the new value to the 914 // |preferred_size_for_capture_| changes, to propagate the new value to the
912 // |delegate_|. 915 // |delegate_|.
913 void OnPreferredSizeChanged(const gfx::Size& old_size); 916 void OnPreferredSizeChanged(const gfx::Size& old_size);
914 917
918 #if defined(OS_ANDROID)
919 WebContentsAndroid* GetWebContentsAndroid();
920 #endif
921
915 // Adds/removes a callback called on creation of each new WebContents. 922 // Adds/removes a callback called on creation of each new WebContents.
916 // Deprecated, about to remove. 923 // Deprecated, about to remove.
917 static void AddCreatedCallback(const CreatedCallback& callback); 924 static void AddCreatedCallback(const CreatedCallback& callback);
918 static void RemoveCreatedCallback(const CreatedCallback& callback); 925 static void RemoveCreatedCallback(const CreatedCallback& callback);
919 926
920 // Data for core operation --------------------------------------------------- 927 // Data for core operation ---------------------------------------------------
921 928
922 // Delegate for notifying our owner about stuff. Not owned by us. 929 // Delegate for notifying our owner about stuff. Not owned by us.
923 WebContentsDelegate* delegate_; 930 WebContentsDelegate* delegate_;
924 931
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 // The accessibility mode for all frames. This is queried when each frame 1195 // The accessibility mode for all frames. This is queried when each frame
1189 // is created, and broadcast to all frames when it changes. 1196 // is created, and broadcast to all frames when it changes.
1190 AccessibilityMode accessibility_mode_; 1197 AccessibilityMode accessibility_mode_;
1191 1198
1192 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl); 1199 DISALLOW_COPY_AND_ASSIGN(WebContentsImpl);
1193 }; 1200 };
1194 1201
1195 } // namespace content 1202 } // namespace content
1196 1203
1197 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1204 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698