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

Side by Side Diff: ash/test/tray_cast_test_api.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 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
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 "ash/test/tray_cast_test_api.h" 5 #include "ash/test/tray_cast_test_api.h"
6 6
7 #include "ash/system/tray/system_tray.h" 7 #include "ash/system/tray/system_tray.h"
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "ash/wm_shell.h"
10 #include "ui/views/view.h" 9 #include "ui/views/view.h"
11 10
12 namespace ash { 11 namespace ash {
13 12
14 TrayCastTestAPI::TrayCastTestAPI(TrayCast* tray_cast) : tray_cast_(tray_cast) {} 13 TrayCastTestAPI::TrayCastTestAPI(TrayCast* tray_cast) : tray_cast_(tray_cast) {}
15 14
16 TrayCastTestAPI::~TrayCastTestAPI() {} 15 TrayCastTestAPI::~TrayCastTestAPI() {}
17 16
18 bool TrayCastTestAPI::IsTrayInitialized() const { 17 bool TrayCastTestAPI::IsTrayInitialized() const {
19 return tray_cast_->default_ != nullptr; 18 return tray_cast_->default_ != nullptr;
(...skipping 26 matching lines...) Expand all
46 void TrayCastTestAPI::OnCastingSessionStartedOrStopped(bool is_casting) { 45 void TrayCastTestAPI::OnCastingSessionStartedOrStopped(bool is_casting) {
47 tray_cast_->OnCastingSessionStartedOrStopped(is_casting); 46 tray_cast_->OnCastingSessionStartedOrStopped(is_casting);
48 } 47 }
49 48
50 bool TrayCastTestAPI::IsViewDrawn(TrayCast::ChildViewId id) const { 49 bool TrayCastTestAPI::IsViewDrawn(TrayCast::ChildViewId id) const {
51 const views::View* view = tray_cast_->GetDefaultView()->GetViewByID(id); 50 const views::View* view = tray_cast_->GetDefaultView()->GetViewByID(id);
52 return view != nullptr && view->IsDrawn(); 51 return view != nullptr && view->IsDrawn();
53 } 52 }
54 53
55 } // namespace ash 54 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698