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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2664963002: mus: Make --use-mus-in-renderer the default for --mash. (Closed)
Patch Set: . Created 3 years, 10 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/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 } 361 }
362 362
363 RenderWidgetHostViewAura* view_; 363 RenderWidgetHostViewAura* view_;
364 std::set<aura::Window*> ancestors_; 364 std::set<aura::Window*> ancestors_;
365 365
366 DISALLOW_COPY_AND_ASSIGN(WindowAncestorObserver); 366 DISALLOW_COPY_AND_ASSIGN(WindowAncestorObserver);
367 }; 367 };
368 368
369 bool IsMus() { 369 bool IsMus() {
370 return aura::Env::GetInstance()->mode() == aura::Env::Mode::MUS && 370 return aura::Env::GetInstance()->mode() == aura::Env::Mode::MUS &&
371 base::CommandLine::ForCurrentProcess()->HasSwitch( 371 !base::CommandLine::ForCurrentProcess()->HasSwitch(
372 switches::kUseMusInRenderer); 372 switches::kNoUseMusInRenderer);
373 } 373 }
374 374
375 //////////////////////////////////////////////////////////////////////////////// 375 ////////////////////////////////////////////////////////////////////////////////
376 // RenderWidgetHostViewAura, public: 376 // RenderWidgetHostViewAura, public:
377 377
378 RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host, 378 RenderWidgetHostViewAura::RenderWidgetHostViewAura(RenderWidgetHost* host,
379 bool is_guest_view_hack) 379 bool is_guest_view_hack)
380 : host_(RenderWidgetHostImpl::From(host)), 380 : host_(RenderWidgetHostImpl::From(host)),
381 window_(nullptr), 381 window_(nullptr),
382 in_shutdown_(false), 382 in_shutdown_(false),
(...skipping 2004 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 2387
2388 void RenderWidgetHostViewAura::SetPopupChild( 2388 void RenderWidgetHostViewAura::SetPopupChild(
2389 RenderWidgetHostViewAura* popup_child_host_view) { 2389 RenderWidgetHostViewAura* popup_child_host_view) {
2390 popup_child_host_view_ = popup_child_host_view; 2390 popup_child_host_view_ = popup_child_host_view;
2391 event_handler_->SetPopupChild( 2391 event_handler_->SetPopupChild(
2392 popup_child_host_view, 2392 popup_child_host_view,
2393 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); 2393 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr);
2394 } 2394 }
2395 2395
2396 } // namespace content 2396 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698