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

Side by Side Diff: mash/wm/non_client_frame_controller.cc

Issue 1824183002: Mash: Show app icons in shelf based on the Widget's app icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more review comments Created 4 years, 9 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/task_viewer/task_viewer.cc ('k') | mash/wm/public/interfaces/user_window_controller.mojom » ('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 "mash/wm/non_client_frame_controller.h" 5 #include "mash/wm/non_client_frame_controller.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "components/mus/public/cpp/property_type_converters.h" 10 #include "components/mus/public/cpp/property_type_converters.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 window_tree_host->window()->SetLayoutManager(layout_manager); 118 window_tree_host->window()->SetLayoutManager(layout_manager);
119 const int inset = Shadow::GetInteriorInsetForStyle(Shadow::STYLE_ACTIVE); 119 const int inset = Shadow::GetInteriorInsetForStyle(Shadow::STYLE_ACTIVE);
120 window_tree_host->SetOutputSurfacePadding( 120 window_tree_host->SetOutputSurfacePadding(
121 gfx::Insets(inset, inset, inset, inset)); 121 gfx::Insets(inset, inset, inset, inset));
122 window_tree_host->window()->layer()->Add(shadow_->layer()); 122 window_tree_host->window()->layer()->Add(shadow_->layer());
123 shadow_->layer()->parent()->StackAtBottom(shadow_->layer()); 123 shadow_->layer()->parent()->StackAtBottom(shadow_->layer());
124 } 124 }
125 void CenterWindow(const gfx::Size& size) override { 125 void CenterWindow(const gfx::Size& size) override {
126 // Do nothing. The client controls the size, not us. 126 // Do nothing. The client controls the size, not us.
127 } 127 }
128 bool SetWindowTitle(const base::string16& title) override {
129 // Do nothing. The client controls the window title, not us.
130 return false;
131 }
132 void SetWindowIcons(const gfx::ImageSkia& window_icon,
133 const gfx::ImageSkia& app_icon) override {
134 // Do nothing. The client controls window icons, not us.
135 }
128 void UpdateClientArea() override { 136 void UpdateClientArea() override {
129 // This pushes the client area to the WS. We don't want to do that as 137 // This pushes the client area to the WS. We don't want to do that as
130 // the client area should come from the client, not us. 138 // the client area should come from the client, not us.
131 } 139 }
132 140
133 private: 141 private:
134 // The shadow, may be null. 142 // The shadow, may be null.
135 scoped_ptr<Shadow> shadow_; 143 scoped_ptr<Shadow> shadow_;
136 144
137 scoped_ptr<MoveEventHandler> move_event_handler_; 145 scoped_ptr<MoveEventHandler> move_event_handler_;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 widget_->UpdateWindowTitle(); 258 widget_->UpdateWindowTitle();
251 } 259 }
252 260
253 void NonClientFrameController::OnWindowDestroyed(mus::Window* window) { 261 void NonClientFrameController::OnWindowDestroyed(mus::Window* window) {
254 window_->RemoveObserver(this); 262 window_->RemoveObserver(this);
255 window_ = nullptr; 263 window_ = nullptr;
256 } 264 }
257 265
258 } // namespace wm 266 } // namespace wm
259 } // namespace mash 267 } // namespace mash
OLDNEW
« no previous file with comments | « mash/task_viewer/task_viewer.cc ('k') | mash/wm/public/interfaces/user_window_controller.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698