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

Side by Side Diff: chrome/browser/ui/views/global_error_bubble_view.h

Issue 933893003: Use standard icon/title in global error bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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 (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 15 matching lines...) Expand all
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;
33 33
34 // views::BubbleDelegateView implementation. 34 // views::BubbleDelegateView implementation.
35 bool ShouldShowCloseButton() const override; 35 bool ShouldShowCloseButton() const override;
36 bool ShouldShowWindowTitle() const override;
37 base::string16 GetWindowTitle() const override;
38 gfx::ImageSkia GetWindowTitleIcon() override;
39 bool ShouldShowWindowTitleIcon() const override;
36 40
37 // GlobalErrorBubbleViewBase implementation. 41 // GlobalErrorBubbleViewBase implementation.
38 void CloseBubbleView() override; 42 void CloseBubbleView() override;
39 43
40 private: 44 private:
41 Browser* browser_; 45 Browser* browser_;
42 base::WeakPtr<GlobalErrorWithStandardBubble> error_; 46 base::WeakPtr<GlobalErrorWithStandardBubble> error_;
43 47
44 scoped_ptr<ElevationIconSetter> elevation_icon_setter_; 48 scoped_ptr<ElevationIconSetter> elevation_icon_setter_;
45 49
46 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); 50 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView);
47 }; 51 };
48 52
49 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ 53 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/global_error_bubble_view.cc » ('j') | ui/views/widget/widget_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698