| OLD | NEW |
| 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 Loading... |
| 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(bool user_action); |
| 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 Loading... |
| 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_ |
| OLD | NEW |