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

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

Issue 639703004: Optimizing DateTimeAndroid and ColorChooserAndroid initializations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Created 6 years, 2 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 #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/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #include "net/http/http_cache.h" 97 #include "net/http/http_cache.h"
98 #include "net/http/http_transaction_factory.h" 98 #include "net/http/http_transaction_factory.h"
99 #include "net/url_request/url_request_context.h" 99 #include "net/url_request/url_request_context.h"
100 #include "net/url_request/url_request_context_getter.h" 100 #include "net/url_request/url_request_context_getter.h"
101 #include "ui/base/layout.h" 101 #include "ui/base/layout.h"
102 #include "ui/gfx/display.h" 102 #include "ui/gfx/display.h"
103 #include "ui/gfx/screen.h" 103 #include "ui/gfx/screen.h"
104 #include "ui/gl/gl_switches.h" 104 #include "ui/gl/gl_switches.h"
105 105
106 #if defined(OS_ANDROID) 106 #if defined(OS_ANDROID)
107 #include "content/browser/android/content_view_core_impl.h"
108 #include "content/browser/android/date_time_chooser_android.h" 107 #include "content/browser/android/date_time_chooser_android.h"
109 #include "content/browser/media/android/browser_media_player_manager.h" 108 #include "content/browser/media/android/browser_media_player_manager.h"
110 #include "content/browser/web_contents/web_contents_android.h" 109 #include "content/browser/web_contents/web_contents_android.h"
111 #include "content/public/browser/android/content_view_core.h"
112 #endif 110 #endif
113 111
114 #if defined(OS_MACOSX) 112 #if defined(OS_MACOSX)
115 #include "base/mac/foundation_util.h" 113 #include "base/mac/foundation_util.h"
116 #endif 114 #endif
117 115
118 // Cross-Site Navigations 116 // Cross-Site Navigations
119 // 117 //
120 // If a WebContentsImpl is told to navigate to a different web site (as 118 // If a WebContentsImpl is told to navigate to a different web site (as
121 // determined by SiteInstance), it will replace its current RenderViewHost with 119 // determined by SiteInstance), it will replace its current RenderViewHost with
(...skipping 2789 matching lines...) Expand 10 before | Expand all | Expand 10 after
2911 void WebContentsImpl::OnFindMatchRectsReply( 2909 void WebContentsImpl::OnFindMatchRectsReply(
2912 int version, 2910 int version,
2913 const std::vector<gfx::RectF>& rects, 2911 const std::vector<gfx::RectF>& rects,
2914 const gfx::RectF& active_rect) { 2912 const gfx::RectF& active_rect) {
2915 if (delegate_) 2913 if (delegate_)
2916 delegate_->FindMatchRectsReply(this, version, rects, active_rect); 2914 delegate_->FindMatchRectsReply(this, version, rects, active_rect);
2917 } 2915 }
2918 2916
2919 void WebContentsImpl::OnOpenDateTimeDialog( 2917 void WebContentsImpl::OnOpenDateTimeDialog(
2920 const ViewHostMsg_DateTimeDialogValue_Params& value) { 2918 const ViewHostMsg_DateTimeDialogValue_Params& value) {
2921 date_time_chooser_->ShowDialog(ContentViewCore::FromWebContents(this), 2919 date_time_chooser_->ShowDialog(this,
2922 GetRenderViewHost(), 2920 GetRenderViewHost(),
2923 value.dialog_type, 2921 value.dialog_type,
2924 value.dialog_value, 2922 value.dialog_value,
2925 value.minimum, 2923 value.minimum,
2926 value.maximum, 2924 value.maximum,
2927 value.step, 2925 value.step,
2928 value.suggestions); 2926 value.suggestions);
2929 } 2927 }
2930 2928
2931 #endif 2929 #endif
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
4371 node->render_manager()->ResumeResponseDeferredAtStart(); 4369 node->render_manager()->ResumeResponseDeferredAtStart();
4372 } 4370 }
4373 4371
4374 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4372 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4375 force_disable_overscroll_content_ = force_disable; 4373 force_disable_overscroll_content_ = force_disable;
4376 if (view_) 4374 if (view_)
4377 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4375 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4378 } 4376 }
4379 4377
4380 } // namespace content 4378 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698