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

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

Issue 2391153002: Converts most of WorkspaceLayoutManager tests to use common code (Closed)
Patch Set: merge Created 4 years, 2 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
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_unittest.cc ('k') | no next file » | 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // within this Window's bounds. 259 // within this Window's bounds.
260 bool ContainsPoint(const gfx::Point& local_point) const; 260 bool ContainsPoint(const gfx::Point& local_point) const;
261 261
262 // Returns the Window that most closely encloses |local_point| for the 262 // Returns the Window that most closely encloses |local_point| for the
263 // purposes of event targeting. 263 // purposes of event targeting.
264 Window* GetEventHandlerForPoint(const gfx::Point& local_point); 264 Window* GetEventHandlerForPoint(const gfx::Point& local_point);
265 265
266 // Returns the topmost Window with a delegate containing |local_point|. 266 // Returns the topmost Window with a delegate containing |local_point|.
267 Window* GetTopWindowContainingPoint(const gfx::Point& local_point); 267 Window* GetTopWindowContainingPoint(const gfx::Point& local_point);
268 268
269 // Returns this window's toplevel window (the highest-up-the-tree anscestor 269 // Returns this window's toplevel window (the highest-up-the-tree ancestor
270 // that has a delegate set). The toplevel window may be |this|. 270 // that has a delegate set). The toplevel window may be |this|.
271 Window* GetToplevelWindow(); 271 Window* GetToplevelWindow();
272 272
273 // Claims focus. 273 // Claims focus.
274 void Focus(); 274 void Focus();
275 275
276 // Returns true if the Window is currently the focused window. 276 // Returns true if the Window is currently the focused window.
277 bool HasFocus() const; 277 bool HasFocus() const;
278 278
279 // Returns true if the Window can be focused. 279 // Returns true if the Window can be focused.
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 }; 523 };
524 524
525 std::map<const void*, Value> prop_map_; 525 std::map<const void*, Value> prop_map_;
526 526
527 DISALLOW_COPY_AND_ASSIGN(Window); 527 DISALLOW_COPY_AND_ASSIGN(Window);
528 }; 528 };
529 529
530 } // namespace aura 530 } // namespace aura
531 531
532 #endif // UI_AURA_WINDOW_H_ 532 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698