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

Unified Diff: ash/wm/maximize_bubble_controller.cc

Issue 10825343: Fixing focussing issue when bubble opens (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/custom_frame_view_ash_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_bubble_controller.cc
diff --git a/ash/wm/maximize_bubble_controller.cc b/ash/wm/maximize_bubble_controller.cc
index 7897341bea012ebbd6976ea39dfe7bbfd476f2f8..18c761c42ab3fc920851a42b7af1bcdbde93ce07 100644
--- a/ash/wm/maximize_bubble_controller.cc
+++ b/ash/wm/maximize_bubble_controller.cc
@@ -224,6 +224,7 @@ class MaximizeBubbleController::Bubble : public views::BubbleDelegateView,
// Overridden from views::BubbleDelegateView.
virtual gfx::Rect GetAnchorRect() OVERRIDE;
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
+ virtual bool CanActivate() const OVERRIDE { return false; }
// Overridden from views::WidgetDelegateView.
virtual bool HasHitTestMask() const OVERRIDE;
@@ -411,6 +412,7 @@ MaximizeBubbleController::Bubble::Bubble(
// Note that the returned widget has an observer which points to our
// functions.
bubble_widget_ = views::BubbleDelegateView::CreateBubble(this);
+ bubble_widget_->set_focus_on_creation(false);
SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE);
bubble_widget_->non_client_view()->frame_view()->set_background(NULL);
« no previous file with comments | « ash/wm/custom_frame_view_ash_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698