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

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

Issue 10391165: Notification for device scale factor change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo_main fix Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/test/test_window_delegate.cc ('k') | ui/aura/window.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 (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 #ifndef UI_AURA_WINDOW_H_ 5 #ifndef UI_AURA_WINDOW_H_
6 #define UI_AURA_WINDOW_H_ 6 #define UI_AURA_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // Called when this window's stacking order among its siblings is changed. 388 // Called when this window's stacking order among its siblings is changed.
389 void OnStackingChanged(); 389 void OnStackingChanged();
390 390
391 // Notifies observers registered with this Window (and its subtree) when the 391 // Notifies observers registered with this Window (and its subtree) when the
392 // Window has been added or is about to be removed from a RootWindow. 392 // Window has been added or is about to be removed from a RootWindow.
393 void NotifyAddedToRootWindow(); 393 void NotifyAddedToRootWindow();
394 void NotifyRemovingFromRootWindow(); 394 void NotifyRemovingFromRootWindow();
395 395
396 // Overridden from ui::LayerDelegate: 396 // Overridden from ui::LayerDelegate:
397 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 397 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
398 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
398 399
399 // Updates the layer name with a name based on the window's name and id. 400 // Updates the layer name with a name based on the window's name and id.
400 void UpdateLayerName(const std::string& name); 401 void UpdateLayerName(const std::string& name);
401 402
402 #ifndef NDEBUG 403 #ifndef NDEBUG
403 // These methods are useful when debugging. 404 // These methods are useful when debugging.
404 std::string GetDebugInfo() const; 405 std::string GetDebugInfo() const;
405 void PrintWindowHierarchy(int depth) const; 406 void PrintWindowHierarchy(int depth) const;
406 #endif 407 #endif
407 408
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 }; 470 };
470 471
471 std::map<const void*, Value> prop_map_; 472 std::map<const void*, Value> prop_map_;
472 473
473 DISALLOW_COPY_AND_ASSIGN(Window); 474 DISALLOW_COPY_AND_ASSIGN(Window);
474 }; 475 };
475 476
476 } // namespace aura 477 } // namespace aura
477 478
478 #endif // UI_AURA_WINDOW_H_ 479 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698