| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_IME_IME_WARNING_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_IME_IME_WARNING_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_IME_IME_WARNING_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_IME_IME_WARNING_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/browser_list_observer.h" | 9 #include "chrome/browser/ui/browser_list_observer.h" |
| 10 #include "chrome/browser/ui/toolbar/toolbar_actions_bar_observer.h" | 10 #include "chrome/browser/ui/toolbar/toolbar_actions_bar_observer.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 public ToolbarActionsBarObserver, | 34 public ToolbarActionsBarObserver, |
| 35 public chrome::BrowserListObserver { | 35 public chrome::BrowserListObserver { |
| 36 public: | 36 public: |
| 37 static void ShowBubble(const extensions::Extension* extension, | 37 static void ShowBubble(const extensions::Extension* extension, |
| 38 BrowserView* browser_view, | 38 BrowserView* browser_view, |
| 39 const ImeWarningBubbleResponseCallback& callback); | 39 const ImeWarningBubbleResponseCallback& callback); |
| 40 | 40 |
| 41 // views::DialogDelegate: | 41 // views::DialogDelegate: |
| 42 bool Accept() override; | 42 bool Accept() override; |
| 43 bool Cancel() override; | 43 bool Cancel() override; |
| 44 bool ShouldDefaultButtonBeBlue() const override; | |
| 45 | 44 |
| 46 // ToolbarActionsBarObserver: | 45 // ToolbarActionsBarObserver: |
| 47 void OnToolbarActionsBarAnimationEnded() override; | 46 void OnToolbarActionsBarAnimationEnded() override; |
| 48 | 47 |
| 49 // chrome::BrowserListObserver: | 48 // chrome::BrowserListObserver: |
| 50 void OnBrowserRemoved(Browser* browser) override; | 49 void OnBrowserRemoved(Browser* browser) override; |
| 51 | 50 |
| 52 private: | 51 private: |
| 53 friend class ImeWarningBubbleTest; | 52 friend class ImeWarningBubbleTest; |
| 54 | 53 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 93 |
| 95 ScopedObserver<ToolbarActionsBar, ToolbarActionsBarObserver> | 94 ScopedObserver<ToolbarActionsBar, ToolbarActionsBarObserver> |
| 96 toolbar_actions_bar_observer_; | 95 toolbar_actions_bar_observer_; |
| 97 | 96 |
| 98 base::WeakPtrFactory<ImeWarningBubbleView> weak_ptr_factory_; | 97 base::WeakPtrFactory<ImeWarningBubbleView> weak_ptr_factory_; |
| 99 | 98 |
| 100 DISALLOW_COPY_AND_ASSIGN(ImeWarningBubbleView); | 99 DISALLOW_COPY_AND_ASSIGN(ImeWarningBubbleView); |
| 101 }; | 100 }; |
| 102 | 101 |
| 103 #endif // CHROME_BROWSER_UI_VIEWS_IME_IME_WARNING_BUBBLE_VIEW_H_ | 102 #endif // CHROME_BROWSER_UI_VIEWS_IME_IME_WARNING_BUBBLE_VIEW_H_ |
| OLD | NEW |