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

Side by Side Diff: ui/views/mus/native_widget_mus.cc

Issue 1864953002: ash/mash: Fix painting of status-tray bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 years, 8 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 | « no previous file | ui/views/mus/native_widget_mus_unittest.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ui/views/mus/native_widget_mus.h" 5 #include "ui/views/mus/native_widget_mus.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "components/mus/public/cpp/property_type_converters.h" 9 #include "components/mus/public/cpp/property_type_converters.h"
10 #include "components/mus/public/cpp/window.h" 10 #include "components/mus/public/cpp/window.h"
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 465
466 gfx::NativeWindow NativeWidgetMus::GetNativeWindow() const { 466 gfx::NativeWindow NativeWidgetMus::GetNativeWindow() const {
467 return content_; 467 return content_;
468 } 468 }
469 469
470 Widget* NativeWidgetMus::GetTopLevelWidget() { 470 Widget* NativeWidgetMus::GetTopLevelWidget() {
471 return GetWidget(); 471 return GetWidget();
472 } 472 }
473 473
474 const ui::Compositor* NativeWidgetMus::GetCompositor() const { 474 const ui::Compositor* NativeWidgetMus::GetCompositor() const {
475 return window_tree_host_->window()->layer()->GetCompositor(); 475 return window_tree_host_->compositor();
476 } 476 }
477 477
478 const ui::Layer* NativeWidgetMus::GetLayer() const { 478 const ui::Layer* NativeWidgetMus::GetLayer() const {
479 return window_tree_host_ ? window_tree_host_->window()->layer() : nullptr; 479 return content_ ? content_->layer() : nullptr;
480 } 480 }
481 481
482 void NativeWidgetMus::ReorderNativeViews() { 482 void NativeWidgetMus::ReorderNativeViews() {
483 // NOTIMPLEMENTED(); 483 // NOTIMPLEMENTED();
484 } 484 }
485 485
486 void NativeWidgetMus::ViewRemoved(View* view) { 486 void NativeWidgetMus::ViewRemoved(View* view) {
487 // NOTIMPLEMENTED(); 487 // NOTIMPLEMENTED();
488 } 488 }
489 489
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 window_tree_host_->Show(); 998 window_tree_host_->Show();
999 GetNativeWindow()->Show(); 999 GetNativeWindow()->Show();
1000 } else { 1000 } else {
1001 window_tree_host_->Hide(); 1001 window_tree_host_->Hide();
1002 GetNativeWindow()->Hide(); 1002 GetNativeWindow()->Hide();
1003 } 1003 }
1004 native_widget_delegate_->OnNativeWidgetVisibilityChanged(window->visible()); 1004 native_widget_delegate_->OnNativeWidgetVisibilityChanged(window->visible());
1005 } 1005 }
1006 1006
1007 } // namespace views 1007 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/mus/native_widget_mus_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698