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

Side by Side Diff: ui/aura/window.cc

Issue 331643004: Update the window labels if they change in overview mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/aura/window.h" 5 #include "ui/aura/window.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 type_ = type; 298 type_ = type;
299 } 299 }
300 300
301 void Window::SetName(const std::string& name) { 301 void Window::SetName(const std::string& name) {
302 name_ = name; 302 name_ = name;
303 303
304 if (layer()) 304 if (layer())
305 UpdateLayerName(); 305 UpdateLayerName();
306 } 306 }
307 307
308 void Window::SetTitle(const base::string16& title) {
309 title_ = title;
310 FOR_EACH_OBSERVER(WindowObserver, observers_, OnWindowTitleChanged(this,
311 title));
tdanderson 2014/06/20 22:33:23 Each of the arguments of FOR_EACH_OBSERVER on a ne
Nina 2014/06/20 23:02:37 Done.
312 }
313
308 void Window::SetTransparent(bool transparent) { 314 void Window::SetTransparent(bool transparent) {
309 transparent_ = transparent; 315 transparent_ = transparent;
310 if (layer()) 316 if (layer())
311 layer()->SetFillsBoundsOpaquely(!transparent_); 317 layer()->SetFillsBoundsOpaquely(!transparent_);
312 } 318 }
313 319
314 void Window::SetFillsBoundsCompletely(bool fills_bounds) { 320 void Window::SetFillsBoundsCompletely(bool fills_bounds) {
315 if (layer()) 321 if (layer())
316 layer()->SetFillsBoundsCompletely(fills_bounds); 322 layer()->SetFillsBoundsCompletely(fills_bounds);
317 } 323 }
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 return window; 1438 return window;
1433 if (offset) 1439 if (offset)
1434 *offset += window->bounds().OffsetFromOrigin(); 1440 *offset += window->bounds().OffsetFromOrigin();
1435 } 1441 }
1436 if (offset) 1442 if (offset)
1437 *offset = gfx::Vector2d(); 1443 *offset = gfx::Vector2d();
1438 return NULL; 1444 return NULL;
1439 } 1445 }
1440 1446
1441 } // namespace aura 1447 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698