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); |