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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 2751763002: Make USE_EXTERNAL_POPUP_MENU local to content. (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include "content/child/memory/child_memory_coordinator_impl.h" 63 #include "content/child/memory/child_memory_coordinator_impl.h"
64 #include "content/child/resource_dispatcher.h" 64 #include "content/child/resource_dispatcher.h"
65 #include "content/child/resource_scheduling_filter.h" 65 #include "content/child/resource_scheduling_filter.h"
66 #include "content/child/runtime_features.h" 66 #include "content/child/runtime_features.h"
67 #include "content/child/thread_safe_sender.h" 67 #include "content/child/thread_safe_sender.h"
68 #include "content/child/web_database_observer_impl.h" 68 #include "content/child/web_database_observer_impl.h"
69 #include "content/child/worker_thread_registry.h" 69 #include "content/child/worker_thread_registry.h"
70 #include "content/common/child_process_messages.h" 70 #include "content/common/child_process_messages.h"
71 #include "content/common/content_constants_internal.h" 71 #include "content/common/content_constants_internal.h"
72 #include "content/common/dom_storage/dom_storage_messages.h" 72 #include "content/common/dom_storage/dom_storage_messages.h"
73 #include "content/common/features.h"
73 #include "content/common/frame_messages.h" 74 #include "content/common/frame_messages.h"
74 #include "content/common/frame_owner_properties.h" 75 #include "content/common/frame_owner_properties.h"
75 #include "content/common/render_process_messages.h" 76 #include "content/common/render_process_messages.h"
76 #include "content/common/resource_messages.h" 77 #include "content/common/resource_messages.h"
77 #include "content/common/site_isolation_policy.h" 78 #include "content/common/site_isolation_policy.h"
78 #include "content/common/view_messages.h" 79 #include "content/common/view_messages.h"
79 #include "content/common/worker_messages.h" 80 #include "content/common/worker_messages.h"
80 #include "content/public/common/content_constants.h" 81 #include "content/public/common/content_constants.h"
81 #include "content/public/common/content_features.h" 82 #include "content/public/common/content_features.h"
82 #include "content/public/common/content_paths.h" 83 #include "content/public/common/content_paths.h"
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 } 608 }
608 609
609 void RenderThreadImpl::Init( 610 void RenderThreadImpl::Init(
610 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue) { 611 const scoped_refptr<base::SingleThreadTaskRunner>& resource_task_queue) {
611 TRACE_EVENT0("startup", "RenderThreadImpl::Init"); 612 TRACE_EVENT0("startup", "RenderThreadImpl::Init");
612 613
613 base::trace_event::TraceLog::GetInstance()->SetThreadSortIndex( 614 base::trace_event::TraceLog::GetInstance()->SetThreadSortIndex(
614 base::PlatformThread::CurrentId(), 615 base::PlatformThread::CurrentId(),
615 kTraceEventRendererMainThreadSortIndex); 616 kTraceEventRendererMainThreadSortIndex);
616 617
617 #if defined(USE_EXTERNAL_POPUP_MENU) 618 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
618 // On Mac and Android Java UI, the select popups are rendered by the browser. 619 // On Mac and Android Java UI, the select popups are rendered by the browser.
619 blink::WebView::setUseExternalPopupMenus(true); 620 blink::WebView::setUseExternalPopupMenus(true);
620 #endif 621 #endif
621 622
622 lazy_tls.Pointer()->Set(this); 623 lazy_tls.Pointer()->Set(this);
623 624
624 // Register this object as the main thread. 625 // Register this object as the main thread.
625 ChildProcess::current()->set_main_thread(this); 626 ChildProcess::current()->set_main_thread(this);
626 627
627 if (IsRunningInMash()) { 628 if (IsRunningInMash()) {
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after
2400 } 2401 }
2401 } 2402 }
2402 2403
2403 void RenderThreadImpl::OnRendererInterfaceRequest( 2404 void RenderThreadImpl::OnRendererInterfaceRequest(
2404 mojom::RendererAssociatedRequest request) { 2405 mojom::RendererAssociatedRequest request) {
2405 DCHECK(!renderer_binding_.is_bound()); 2406 DCHECK(!renderer_binding_.is_bound());
2406 renderer_binding_.Bind(std::move(request)); 2407 renderer_binding_.Bind(std::move(request));
2407 } 2408 }
2408 2409
2409 } // namespace content 2410 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698