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

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

Issue 8585007: Added hotkey support to 8508009 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile issue Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <vector> 10 #include <vector>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // A type is used to identify a class of Windows and customize behavior such 63 // A type is used to identify a class of Windows and customize behavior such
64 // as event handling and parenting. This field should only be consumed by the 64 // as event handling and parenting. This field should only be consumed by the
65 // shell -- Aura itself shouldn't contain type-specific logic. 65 // shell -- Aura itself shouldn't contain type-specific logic.
66 WindowType type() const { return type_; } 66 WindowType type() const { return type_; }
67 void SetType(WindowType type); 67 void SetType(WindowType type);
68 68
69 int id() const { return id_; } 69 int id() const { return id_; }
70 void set_id(int id) { id_ = id; } 70 void set_id(int id) { id_ = id; }
71 71
72 const std::string& name() const { return name_; } 72 const std::string& name() const { return name_; }
73 void set_name(const std::string& name) { name_ = name; } 73 void SetName(const std::string& name);
74 74
75 const string16 title() const { return title_; } 75 const string16 title() const { return title_; }
76 void set_title(const string16& title) { title_ = title; } 76 void set_title(const string16& title) { title_ = title; }
77 77
78 ui::Layer* layer() { return layer_.get(); } 78 ui::Layer* layer() { return layer_.get(); }
79 const ui::Layer* layer() const { return layer_.get(); } 79 const ui::Layer* layer() const { return layer_.get(); }
80 80
81 WindowDelegate* delegate() { return delegate_; } 81 WindowDelegate* delegate() { return delegate_; }
82 82
83 const gfx::Rect& bounds() const; 83 const gfx::Rect& bounds() const;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 // returns the loosest. If |for_event_handling| is true, then hit-test masks 296 // returns the loosest. If |for_event_handling| is true, then hit-test masks
297 // and StopsEventPropagation() are honored; otherwise, only bounds checks are 297 // and StopsEventPropagation() are honored; otherwise, only bounds checks are
298 // performed. 298 // performed.
299 Window* GetWindowForPoint(const gfx::Point& local_point, 299 Window* GetWindowForPoint(const gfx::Point& local_point,
300 bool return_tightest, 300 bool return_tightest,
301 bool for_event_handling); 301 bool for_event_handling);
302 302
303 // Overridden from ui::LayerDelegate: 303 // Overridden from ui::LayerDelegate:
304 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE; 304 virtual void OnPaintLayer(gfx::Canvas* canvas) OVERRIDE;
305 305
306 // Updates the layer name with a name based on the window's name and id.
307 void UpdateLayerName(const std::string& name);
308
306 WindowType type_; 309 WindowType type_;
307 310
308 WindowDelegate* delegate_; 311 WindowDelegate* delegate_;
309 312
310 // The original bounds of a maximized/fullscreen window. 313 // The original bounds of a maximized/fullscreen window.
311 gfx::Rect restore_bounds_; 314 gfx::Rect restore_bounds_;
312 315
313 // The minimum size of the window a user can resize to. 316 // The minimum size of the window a user can resize to.
314 gfx::Size minimum_size_; 317 gfx::Size minimum_size_;
315 318
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // TODO(oshima): Consolidcate ViewProp and aura::window property 351 // TODO(oshima): Consolidcate ViewProp and aura::window property
349 // implementation. 352 // implementation.
350 std::map<const char*, void*> prop_map_; 353 std::map<const char*, void*> prop_map_;
351 354
352 DISALLOW_COPY_AND_ASSIGN(Window); 355 DISALLOW_COPY_AND_ASSIGN(Window);
353 }; 356 };
354 357
355 } // namespace aura 358 } // namespace aura
356 359
357 #endif // UI_AURA_WINDOW_H_ 360 #endif // UI_AURA_WINDOW_H_
OLDNEW
« ui/aura/desktop.cc ('K') | « ui/aura/desktop.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698