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

Side by Side Diff: chrome/browser/ui/views/autofill/save_card_bubble_views.h

Issue 1402363013: Update location bar bubble/icon behavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/autofill/save_card_bubble_view.h" 9 #include "chrome/browser/ui/autofill/save_card_bubble_view.h"
10 #include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view .h" 10 #include "chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view .h"
(...skipping 19 matching lines...) Expand all
30 class SaveCardBubbleViews : public SaveCardBubbleView, 30 class SaveCardBubbleViews : public SaveCardBubbleView,
31 public LocationBarBubbleDelegateView, 31 public LocationBarBubbleDelegateView,
32 public views::ButtonListener, 32 public views::ButtonListener,
33 public views::LinkListener { 33 public views::LinkListener {
34 public: 34 public:
35 // Bubble will be anchored to |anchor_view|. 35 // Bubble will be anchored to |anchor_view|.
36 SaveCardBubbleViews(views::View* anchor_view, 36 SaveCardBubbleViews(views::View* anchor_view,
37 content::WebContents* web_contents, 37 content::WebContents* web_contents,
38 SaveCardBubbleController* controller); 38 SaveCardBubbleController* controller);
39 39
40 void Show(DisplayReason reason);
41
40 // SaveCardBubbleView 42 // SaveCardBubbleView
41 void Show() override; 43 void Hide() override;
42 void Close() override;
43 void ControllerGone() override;
44 44
45 // views::WidgetDelegate 45 // views::WidgetDelegate
46 views::View* GetInitiallyFocusedView() override; 46 views::View* GetInitiallyFocusedView() override;
47 base::string16 GetWindowTitle() const override; 47 base::string16 GetWindowTitle() const override;
48 bool ShouldShowWindowTitle() const override; 48 bool ShouldShowWindowTitle() const override;
49 void WindowClosing() override; 49 void WindowClosing() override;
50 50
51 // views::ButtonListener 51 // views::ButtonListener
52 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 52 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
53 53
(...skipping 14 matching lines...) Expand all
68 views::LabelButton* cancel_button_; 68 views::LabelButton* cancel_button_;
69 69
70 views::Link* learn_more_link_; 70 views::Link* learn_more_link_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleViews); 72 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleViews);
73 }; 73 };
74 74
75 } // namespace autofill 75 } // namespace autofill
76 76
77 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_ 77 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698