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

Unified Diff: ui/aura/test/test_window_delegate.h

Issue 13008024: Fixes bug where FocusController would stack a layer directly above a (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't stack on top of same window Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/workspace_manager_unittest.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/test_window_delegate.h
diff --git a/ui/aura/test/test_window_delegate.h b/ui/aura/test/test_window_delegate.h
index 1b1457849c2b34113bd25013ae94f9515e9bd8ef..fa46698e72d29f75e21bf6bd87f90f1c56cea3d5 100644
--- a/ui/aura/test/test_window_delegate.h
+++ b/ui/aura/test/test_window_delegate.h
@@ -38,6 +38,9 @@ class TestWindowDelegate : public WindowDelegate {
maximum_size_ = maximum_size;
}
+ // Sets the return value for CanFocus(). Default is true.
+ void set_can_focus(bool can_focus) { can_focus_ = can_focus; }
+
// Overridden from WindowDelegate:
virtual gfx::Size GetMinimumSize() const OVERRIDE;
virtual gfx::Size GetMaximumSize() const OVERRIDE;
@@ -64,6 +67,7 @@ class TestWindowDelegate : public WindowDelegate {
bool delete_on_destroyed_;
gfx::Size minimum_size_;
gfx::Size maximum_size_;
+ bool can_focus_;
DISALLOW_COPY_AND_ASSIGN(TestWindowDelegate);
};
« no previous file with comments | « ash/wm/workspace/workspace_manager_unittest.cc ('k') | ui/aura/test/test_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698