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

Side by Side Diff: mash/wm/bridge/wm_shelf_mus.cc

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment 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 | « mash/wm/bridge/wm_shelf_mus.h ('k') | mash/wm/bridge/wm_window_mus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "mash/wm/bridge/wm_shelf_mus.h"
6
7 #include "components/mus/public/cpp/window.h"
8 #include "mash/wm/bridge/wm_window_mus.h"
9 #include "mash/wm/shelf_layout_manager.h"
10
11 // TODO(sky): fully implement this http://crbug.com/612631 .
12 #undef NOTIMPLEMENTED
13 #define NOTIMPLEMENTED() DVLOG(1) << "notimplemented"
14
15 namespace mash {
16 namespace wm {
17
18 WmShelfMus::WmShelfMus(ShelfLayoutManager* shelf_layout_manager)
19 : shelf_layout_manager_(shelf_layout_manager) {}
20
21 WmShelfMus::~WmShelfMus() {}
22
23 ash::wm::WmWindow* WmShelfMus::GetWindow() {
24 return WmWindowMus::Get(shelf_layout_manager_->GetShelfWindow());
25 }
26
27 ash::wm::ShelfAlignment WmShelfMus::GetAlignment() const {
28 switch (shelf_layout_manager_->alignment()) {
29 case shelf::mojom::Alignment::BOTTOM:
30 return ash::wm::SHELF_ALIGNMENT_BOTTOM;
31 case shelf::mojom::Alignment::LEFT:
32 return ash::wm::SHELF_ALIGNMENT_LEFT;
33 case shelf::mojom::Alignment::RIGHT:
34 return ash::wm::SHELF_ALIGNMENT_RIGHT;
35 }
36 NOTREACHED();
37 return ash::wm::SHELF_ALIGNMENT_BOTTOM;
38 }
39
40 ash::wm::ShelfBackgroundType WmShelfMus::GetBackgroundType() const {
41 NOTIMPLEMENTED();
42 return ash::wm::SHELF_BACKGROUND_DEFAULT;
43 }
44
45 void WmShelfMus::UpdateVisibilityState() {
46 NOTIMPLEMENTED();
47 }
48
49 ash::ShelfVisibilityState WmShelfMus::GetVisibilityState() const {
50 NOTIMPLEMENTED();
51 return shelf_layout_manager_->GetShelfWindow() ? ash::SHELF_VISIBLE
52 : ash::SHELF_HIDDEN;
53 }
54
55 void WmShelfMus::UpdateIconPositionForWindow(ash::wm::WmWindow* window) {
56 NOTIMPLEMENTED();
57 }
58
59 gfx::Rect WmShelfMus::GetScreenBoundsOfItemIconForWindow(
60 ash::wm::WmWindow* window) {
61 NOTIMPLEMENTED();
62 return gfx::Rect();
63 }
64
65 void WmShelfMus::AddObserver(ash::wm::WmShelfObserver* observer) {
66 observers_.AddObserver(observer);
67 }
68
69 void WmShelfMus::RemoveObserver(ash::wm::WmShelfObserver* observer) {
70 observers_.RemoveObserver(observer);
71 }
72
73 } // namespace wm
74 } // namespace mash
OLDNEW
« no previous file with comments | « mash/wm/bridge/wm_shelf_mus.h ('k') | mash/wm/bridge/wm_window_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698