Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GLOBAL_ERROR_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" | 9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" |
| 10 #include "ui/views/bubble/bubble_delegate.h" | 10 #include "ui/views/bubble/bubble_delegate.h" |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 22 views::View* anchor_view, | 22 views::View* anchor_view, |
| 23 views::BubbleBorder::Arrow arrow, | 23 views::BubbleBorder::Arrow arrow, |
| 24 Browser* browser, | 24 Browser* browser, |
| 25 const base::WeakPtr<GlobalErrorWithStandardBubble>& error); | 25 const base::WeakPtr<GlobalErrorWithStandardBubble>& error); |
| 26 ~GlobalErrorBubbleView() override; | 26 ~GlobalErrorBubbleView() override; |
| 27 | 27 |
| 28 // views::ButtonListener implementation. | 28 // views::ButtonListener implementation. |
| 29 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 29 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 30 | 30 |
| 31 // views::WidgetDelegate implementation. | 31 // views::WidgetDelegate implementation. |
| 32 void WindowClosing() override; | 32 void WindowClosing() override; |
|
msw
2015/02/20 20:03:44
Ping! The order here (and in the code file) should
xiaoling
2015/02/20 20:23:18
Done.
| |
| 33 base::string16 GetWindowTitle() const override; | |
| 34 bool ShouldShowWindowIcon() const override; | |
| 35 gfx::ImageSkia GetWindowIcon() override; | |
| 33 | 36 |
| 34 // views::BubbleDelegateView implementation. | 37 // views::BubbleDelegateView implementation. |
| 35 bool ShouldShowCloseButton() const override; | 38 bool ShouldShowCloseButton() const override; |
| 36 | 39 |
| 37 // GlobalErrorBubbleViewBase implementation. | 40 // GlobalErrorBubbleViewBase implementation. |
| 38 void CloseBubbleView() override; | 41 void CloseBubbleView() override; |
| 39 | 42 |
| 40 private: | 43 private: |
| 41 Browser* browser_; | 44 Browser* browser_; |
| 42 base::WeakPtr<GlobalErrorWithStandardBubble> error_; | 45 base::WeakPtr<GlobalErrorWithStandardBubble> error_; |
| 43 | 46 |
| 44 scoped_ptr<ElevationIconSetter> elevation_icon_setter_; | 47 scoped_ptr<ElevationIconSetter> elevation_icon_setter_; |
| 45 | 48 |
| 46 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); | 49 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ | 52 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ |
| OLD | NEW |