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

Side by Side Diff: ash/mus/bridge/wm_shelf_mus.cc

Issue 2072023003: mash: Break ash system tray dependencies on ash::ShelfWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 | « ash/mus/bridge/wm_shelf_mus.h ('k') | ash/root_window_controller.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/mus/bridge/wm_shelf_mus.h" 5 #include "ash/mus/bridge/wm_shelf_mus.h"
6 6
7 #include "ash/mus/bridge/wm_window_mus.h" 7 #include "ash/mus/bridge/wm_window_mus.h"
8 #include "ash/mus/shelf_layout_manager.h" 8 #include "ash/mus/shelf_layout_manager.h"
9 #include "components/mus/public/cpp/window.h" 9 #include "components/mus/public/cpp/window.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void WmShelfMus::SetAutoHideBehavior(ShelfAutoHideBehavior behavior) { 49 void WmShelfMus::SetAutoHideBehavior(ShelfAutoHideBehavior behavior) {
50 NOTIMPLEMENTED(); 50 NOTIMPLEMENTED();
51 } 51 }
52 52
53 ShelfAutoHideState WmShelfMus::GetAutoHideState() const { 53 ShelfAutoHideState WmShelfMus::GetAutoHideState() const {
54 NOTIMPLEMENTED(); 54 NOTIMPLEMENTED();
55 return SHELF_AUTO_HIDE_HIDDEN; 55 return SHELF_AUTO_HIDE_HIDDEN;
56 } 56 }
57 57
58 void WmShelfMus::UpdateAutoHideState() {
59 NOTIMPLEMENTED();
60 }
61
58 ShelfBackgroundType WmShelfMus::GetBackgroundType() const { 62 ShelfBackgroundType WmShelfMus::GetBackgroundType() const {
59 NOTIMPLEMENTED(); 63 NOTIMPLEMENTED();
60 return SHELF_BACKGROUND_DEFAULT; 64 return SHELF_BACKGROUND_DEFAULT;
61 } 65 }
62 66
67 bool WmShelfMus::IsDimmed() const {
68 NOTIMPLEMENTED();
69 return false;
70 }
71
72 bool WmShelfMus::IsVisible() const {
73 NOTIMPLEMENTED();
74 return true;
75 }
76
63 void WmShelfMus::UpdateVisibilityState() { 77 void WmShelfMus::UpdateVisibilityState() {
64 NOTIMPLEMENTED(); 78 NOTIMPLEMENTED();
65 } 79 }
66 80
67 ShelfVisibilityState WmShelfMus::GetVisibilityState() const { 81 ShelfVisibilityState WmShelfMus::GetVisibilityState() const {
68 NOTIMPLEMENTED(); 82 NOTIMPLEMENTED();
69 return shelf_layout_manager_->GetShelfWindow() ? SHELF_VISIBLE : SHELF_HIDDEN; 83 return shelf_layout_manager_->GetShelfWindow() ? SHELF_VISIBLE : SHELF_HIDDEN;
70 } 84 }
71 85
72 gfx::Rect WmShelfMus::GetUserWorkAreaBounds() const { 86 gfx::Rect WmShelfMus::GetUserWorkAreaBounds() const {
73 NOTIMPLEMENTED(); 87 NOTIMPLEMENTED();
74 return gfx::Rect(); 88 return gfx::Rect();
75 } 89 }
76 90
77 void WmShelfMus::UpdateIconPositionForWindow(WmWindow* window) { 91 void WmShelfMus::UpdateIconPositionForWindow(WmWindow* window) {
78 NOTIMPLEMENTED(); 92 NOTIMPLEMENTED();
79 } 93 }
80 94
95 gfx::Rect WmShelfMus::GetIdealBounds() {
96 NOTIMPLEMENTED();
97 return gfx::Rect();
98 }
99
81 gfx::Rect WmShelfMus::GetScreenBoundsOfItemIconForWindow(WmWindow* window) { 100 gfx::Rect WmShelfMus::GetScreenBoundsOfItemIconForWindow(WmWindow* window) {
82 NOTIMPLEMENTED(); 101 NOTIMPLEMENTED();
83 return gfx::Rect(); 102 return gfx::Rect();
84 } 103 }
85 104
105 void WmShelfMus::UpdateAutoHideForMouseEvent(ui::MouseEvent* event) {
106 NOTIMPLEMENTED();
107 }
108
109 void WmShelfMus::UpdateAutoHideForGestureEvent(ui::GestureEvent* event) {
110 NOTIMPLEMENTED();
111 }
112
86 void WmShelfMus::AddObserver(WmShelfObserver* observer) { 113 void WmShelfMus::AddObserver(WmShelfObserver* observer) {
87 observers_.AddObserver(observer); 114 observers_.AddObserver(observer);
88 } 115 }
89 116
90 void WmShelfMus::RemoveObserver(WmShelfObserver* observer) { 117 void WmShelfMus::RemoveObserver(WmShelfObserver* observer) {
91 observers_.RemoveObserver(observer); 118 observers_.RemoveObserver(observer);
92 } 119 }
93 120
94 } // namespace mus 121 } // namespace mus
95 } // namespace ash 122 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_shelf_mus.h ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698