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

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

Issue 10351002: ui: Move surface/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix gpu DEPS Created 8 years, 7 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 | Annotate | Revision Log
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 #include "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "content/public/browser/user_metrics.h" 51 #include "content/public/browser/user_metrics.h"
52 #include "content/public/browser/web_contents_delegate.h" 52 #include "content/public/browser/web_contents_delegate.h"
53 #include "content/public/browser/web_contents_observer.h" 53 #include "content/public/browser/web_contents_observer.h"
54 #include "content/public/browser/web_contents_view.h" 54 #include "content/public/browser/web_contents_view.h"
55 #include "content/public/browser/web_ui_controller_factory.h" 55 #include "content/public/browser/web_ui_controller_factory.h"
56 #include "content/public/common/bindings_policy.h" 56 #include "content/public/common/bindings_policy.h"
57 #include "content/public/common/content_constants.h" 57 #include "content/public/common/content_constants.h"
58 #include "content/public/common/content_restriction.h" 58 #include "content/public/common/content_restriction.h"
59 #include "content/public/common/content_switches.h" 59 #include "content/public/common/content_switches.h"
60 #include "content/public/common/url_constants.h" 60 #include "content/public/common/url_constants.h"
61 #include "ui/base/ui_base_switches.h"
62 #include "ui/gfx/monitor.h"
63 #include "ui/gfx/screen.h"
64 #include "net/base/mime_util.h" 61 #include "net/base/mime_util.h"
65 #include "net/base/net_util.h" 62 #include "net/base/net_util.h"
66 #include "net/base/network_change_notifier.h" 63 #include "net/base/network_change_notifier.h"
67 #include "net/url_request/url_request_context_getter.h" 64 #include "net/url_request/url_request_context_getter.h"
68 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 65 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
66 #include "ui/base/ui_base_switches.h"
67 #include "ui/gfx/monitor.h"
68 #include "ui/gfx/screen.h"
69 #include "webkit/glue/web_intent_data.h" 69 #include "webkit/glue/web_intent_data.h"
70 #include "webkit/glue/webpreferences.h" 70 #include "webkit/glue/webpreferences.h"
71 71
72 #if defined(USE_AURA) 72 #if defined(USE_AURA)
73 #include "content/browser/web_contents/web_contents_view_aura.h" 73 #include "content/browser/web_contents/web_contents_view_aura.h"
74 #elif defined(OS_WIN) 74 #elif defined(OS_WIN)
75 #include "content/browser/web_contents/web_contents_view_win.h" 75 #include "content/browser/web_contents/web_contents_view_win.h"
76 #elif defined(TOOLKIT_GTK) 76 #elif defined(TOOLKIT_GTK)
77 #include "content/browser/web_contents/web_contents_view_gtk.h" 77 #include "content/browser/web_contents/web_contents_view_gtk.h"
78 #elif defined(OS_MACOSX) 78 #elif defined(OS_MACOSX)
79 #include "content/browser/web_contents/web_contents_view_mac.h" 79 #include "content/browser/web_contents/web_contents_view_mac.h"
80 #include "ui/gfx/surface/io_surface_support_mac.h" 80 #include "ui/surface/io_surface_support_mac.h"
81 #elif defined(OS_ANDROID) 81 #elif defined(OS_ANDROID)
82 #include "content/browser/web_contents/web_contents_view_android.h" 82 #include "content/browser/web_contents/web_contents_view_android.h"
83 #endif 83 #endif
84 84
85 // Cross-Site Navigations 85 // Cross-Site Navigations
86 // 86 //
87 // If a WebContentsImpl is told to navigate to a different web site (as 87 // If a WebContentsImpl is told to navigate to a different web site (as
88 // determined by SiteInstance), it will replace its current RenderViewHost with 88 // determined by SiteInstance), it will replace its current RenderViewHost with
89 // a new RenderViewHost dedicated to the new SiteInstance. This works as 89 // a new RenderViewHost dedicated to the new SiteInstance. This works as
90 // follows: 90 // follows:
(...skipping 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after
2697 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 2697 void WebContentsImpl::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
2698 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh); 2698 RenderWidgetHostView* rwh_view = GetView()->CreateViewForWidget(rvh);
2699 // Can be NULL during tests. 2699 // Can be NULL during tests.
2700 if (rwh_view) 2700 if (rwh_view)
2701 rwh_view->SetSize(GetView()->GetContainerSize()); 2701 rwh_view->SetSize(GetView()->GetContainerSize());
2702 } 2702 }
2703 2703
2704 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() { 2704 RenderViewHostImpl* WebContentsImpl::GetRenderViewHostImpl() {
2705 return static_cast<RenderViewHostImpl*>(GetRenderViewHost()); 2705 return static_cast<RenderViewHostImpl*>(GetRenderViewHost());
2706 } 2706 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.h ('k') | content/common/gpu/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698