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

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

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 | « ui/aura/test/test_window_delegate.h ('k') | ui/views/corewm/focus_controller.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.cc
diff --git a/ui/aura/test/test_window_delegate.cc b/ui/aura/test/test_window_delegate.cc
index f75d8274ac8500b35d51d75ee7e7c5dc783d3df0..cba700c269fd67f94905bdbac5b90bc7bbbe14f5 100644
--- a/ui/aura/test/test_window_delegate.cc
+++ b/ui/aura/test/test_window_delegate.cc
@@ -20,7 +20,8 @@ namespace test {
TestWindowDelegate::TestWindowDelegate()
: window_component_(HTCLIENT),
- delete_on_destroyed_(false) {
+ delete_on_destroyed_(false),
+ can_focus_(true) {
}
TestWindowDelegate::~TestWindowDelegate() {
@@ -60,7 +61,7 @@ bool TestWindowDelegate::ShouldDescendIntoChildForEventHandling(
}
bool TestWindowDelegate::CanFocus() {
- return true;
+ return can_focus_;
}
void TestWindowDelegate::OnCaptureLost() {
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/views/corewm/focus_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698