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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 void set_hit_test_bounds_override_inner(const gfx::Insets& insets) { | 252 void set_hit_test_bounds_override_inner(const gfx::Insets& insets) { |
253 hit_test_bounds_override_inner_ = insets; | 253 hit_test_bounds_override_inner_ = insets; |
254 } | 254 } |
255 gfx::Insets hit_test_bounds_override_inner() const { | 255 gfx::Insets hit_test_bounds_override_inner() const { |
256 return hit_test_bounds_override_inner_; | 256 return hit_test_bounds_override_inner_; |
257 } | 257 } |
258 | 258 |
259 // Returns true if the |point_in_root| in root window's coordinate falls | 259 // Returns true if the |point_in_root| in root window's coordinate falls |
260 // within this window's bounds. Returns false if the window is detached | 260 // within this window's bounds. Returns false if the window is detached |
261 // from root window. | 261 // from root window. |
262 bool ContainsPointInRoot(const gfx::Point& point_in_root); | 262 bool ContainsPointInRoot(const gfx::Point& point_in_root) const; |
263 | 263 |
264 // Returns true if relative-to-this-Window's-origin |local_point| falls | 264 // Returns true if relative-to-this-Window's-origin |local_point| falls |
265 // within this Window's bounds. | 265 // within this Window's bounds. |
266 bool ContainsPoint(const gfx::Point& local_point); | 266 bool ContainsPoint(const gfx::Point& local_point) const; |
267 | 267 |
268 // Returns true if the mouse pointer at relative-to-this-Window's-origin | 268 // Returns true if the mouse pointer at relative-to-this-Window's-origin |
269 // |local_point| can trigger an event for this Window. | 269 // |local_point| can trigger an event for this Window. |
270 // TODO(beng): A Window can supply a hit-test mask to cause some portions of | 270 // TODO(beng): A Window can supply a hit-test mask to cause some portions of |
271 // itself to not trigger events, causing the events to fall through to the | 271 // itself to not trigger events, causing the events to fall through to the |
272 // Window behind. | 272 // Window behind. |
273 bool HitTest(const gfx::Point& local_point); | 273 bool HitTest(const gfx::Point& local_point); |
274 | 274 |
275 // Returns the Window that most closely encloses |local_point| for the | 275 // Returns the Window that most closely encloses |local_point| for the |
276 // purposes of event targeting. | 276 // purposes of event targeting. |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 }; | 479 }; |
480 | 480 |
481 std::map<const void*, Value> prop_map_; | 481 std::map<const void*, Value> prop_map_; |
482 | 482 |
483 DISALLOW_COPY_AND_ASSIGN(Window); | 483 DISALLOW_COPY_AND_ASSIGN(Window); |
484 }; | 484 }; |
485 | 485 |
486 } // namespace aura | 486 } // namespace aura |
487 | 487 |
488 #endif // UI_AURA_WINDOW_H_ | 488 #endif // UI_AURA_WINDOW_H_ |
OLD | NEW |