| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" | 5 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
| 10 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" | 10 #include "chrome/browser/ui/fullscreen/fullscreen_controller.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "ui/views/controls/button/label_button.h" | 26 #include "ui/views/controls/button/label_button.h" |
| 27 #include "ui/views/controls/combobox/combobox.h" | 27 #include "ui/views/controls/combobox/combobox.h" |
| 28 #include "ui/views/controls/combobox/combobox_listener.h" | 28 #include "ui/views/controls/combobox/combobox_listener.h" |
| 29 #include "ui/views/controls/link.h" | 29 #include "ui/views/controls/link.h" |
| 30 #include "ui/views/controls/link_listener.h" | 30 #include "ui/views/controls/link_listener.h" |
| 31 #include "ui/views/controls/styled_label.h" | 31 #include "ui/views/controls/styled_label.h" |
| 32 #include "ui/views/controls/styled_label_listener.h" | 32 #include "ui/views/controls/styled_label_listener.h" |
| 33 #include "ui/views/layout/fill_layout.h" | 33 #include "ui/views/layout/fill_layout.h" |
| 34 #include "ui/views/layout/grid_layout.h" | 34 #include "ui/views/layout/grid_layout.h" |
| 35 #include "ui/views/layout/layout_constants.h" | 35 #include "ui/views/layout/layout_constants.h" |
| 36 #include "ui/wm/core/window_animations.h" | 36 #include "ui/views/widget/widget.h" |
| 37 | 37 |
| 38 | 38 |
| 39 // Helpers -------------------------------------------------------------------- | 39 // Helpers -------------------------------------------------------------------- |
| 40 | 40 |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 const int kDesiredBubbleWidth = 370; | 43 const int kDesiredBubbleWidth = 370; |
| 44 | 44 |
| 45 enum ColumnSetType { | 45 enum ColumnSetType { |
| 46 // | | (FILL, FILL) | | | 46 // | | (FILL, FILL) | | |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 | 861 |
| 862 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() { | 862 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() { |
| 863 return initially_focused_view_; | 863 return initially_focused_view_; |
| 864 } | 864 } |
| 865 | 865 |
| 866 void ManagePasswordsBubbleView::Observe( | 866 void ManagePasswordsBubbleView::Observe( |
| 867 int type, | 867 int type, |
| 868 const content::NotificationSource& source, | 868 const content::NotificationSource& source, |
| 869 const content::NotificationDetails& details) { | 869 const content::NotificationDetails& details) { |
| 870 DCHECK_EQ(type, chrome::NOTIFICATION_FULLSCREEN_CHANGED); | 870 DCHECK_EQ(type, chrome::NOTIFICATION_FULLSCREEN_CHANGED); |
| 871 aura::Window* window = GetWidget()->GetNativeView(); | 871 GetWidget()->SetVisibilityAnimationTransition(views::Widget::ANIMATE_NONE); |
| 872 wm::SetWindowVisibilityAnimationTransition(window, wm::ANIMATE_NONE); | |
| 873 CloseBubble(); | 872 CloseBubble(); |
| 874 } | 873 } |
| OLD | NEW |