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

Side by Side Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc

Issue 693523003: MacViews: Put wm window animation calls behind an interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-clipboard
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
38 37
39 // Helpers -------------------------------------------------------------------- 38 // Helpers --------------------------------------------------------------------
40 39
41 namespace { 40 namespace {
42 41
43 const int kDesiredBubbleWidth = 370; 42 const int kDesiredBubbleWidth = 370;
44 43
45 enum ColumnSetType { 44 enum ColumnSetType {
46 // | | (FILL, FILL) | | 45 // | | (FILL, FILL) | |
47 // Used for the bubble's header, the credentials list, and for simple 46 // Used for the bubble's header, the credentials list, and for simple
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 860
862 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() { 861 views::View* ManagePasswordsBubbleView::GetInitiallyFocusedView() {
863 return initially_focused_view_; 862 return initially_focused_view_;
864 } 863 }
865 864
866 void ManagePasswordsBubbleView::Observe( 865 void ManagePasswordsBubbleView::Observe(
867 int type, 866 int type,
868 const content::NotificationSource& source, 867 const content::NotificationSource& source,
869 const content::NotificationDetails& details) { 868 const content::NotificationDetails& details) {
870 DCHECK_EQ(type, chrome::NOTIFICATION_FULLSCREEN_CHANGED); 869 DCHECK_EQ(type, chrome::NOTIFICATION_FULLSCREEN_CHANGED);
871 aura::Window* window = GetWidget()->GetNativeView(); 870 GetWidget()->GetVisibilityAnimation()->SetTransition(
872 wm::SetWindowVisibilityAnimationTransition(window, wm::ANIMATE_NONE); 871 views::Widget::VisibilityAnimation::ANIMATE_NONE);
873 CloseBubble(); 872 CloseBubble();
874 } 873 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698