OLD | NEW |
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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 // Moves the cursor to the specified location relative to the window. | 217 // Moves the cursor to the specified location relative to the window. |
218 void MoveCursorTo(const gfx::Point& point_in_window); | 218 void MoveCursorTo(const gfx::Point& point_in_window); |
219 | 219 |
220 // Returns the cursor for the specified point, in window coordinates. | 220 // Returns the cursor for the specified point, in window coordinates. |
221 gfx::NativeCursor GetCursor(const gfx::Point& point) const; | 221 gfx::NativeCursor GetCursor(const gfx::Point& point) const; |
222 | 222 |
223 // Add/remove observer. | 223 // Add/remove observer. |
224 void AddObserver(WindowObserver* observer); | 224 void AddObserver(WindowObserver* observer); |
225 void RemoveObserver(WindowObserver* observer); | 225 void RemoveObserver(WindowObserver* observer); |
226 bool HasObserver(WindowObserver* observer); | 226 bool HasObserver(const WindowObserver* observer) const; |
227 | 227 |
228 void set_ignore_events(bool ignore_events) { ignore_events_ = ignore_events; } | 228 void set_ignore_events(bool ignore_events) { ignore_events_ = ignore_events; } |
229 bool ignore_events() const { return ignore_events_; } | 229 bool ignore_events() const { return ignore_events_; } |
230 | 230 |
231 // Sets the window to grab hits for an area extending |insets| pixels inside | 231 // Sets the window to grab hits for an area extending |insets| pixels inside |
232 // its bounds (even if that inner region overlaps a child window). This can be | 232 // its bounds (even if that inner region overlaps a child window). This can be |
233 // used to create an invisible non-client area that overlaps the client area. | 233 // used to create an invisible non-client area that overlaps the client area. |
234 void set_hit_test_bounds_override_inner(const gfx::Insets& insets) { | 234 void set_hit_test_bounds_override_inner(const gfx::Insets& insets) { |
235 hit_test_bounds_override_inner_ = insets; | 235 hit_test_bounds_override_inner_ = insets; |
236 } | 236 } |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 }; | 537 }; |
538 | 538 |
539 std::map<const void*, Value> prop_map_; | 539 std::map<const void*, Value> prop_map_; |
540 | 540 |
541 DISALLOW_COPY_AND_ASSIGN(Window); | 541 DISALLOW_COPY_AND_ASSIGN(Window); |
542 }; | 542 }; |
543 | 543 |
544 } // namespace aura | 544 } // namespace aura |
545 | 545 |
546 #endif // UI_AURA_WINDOW_H_ | 546 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |