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

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

Issue 10823015: Make Window::ContainsPoint and Window::ContainsPointInRoot const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | 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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698