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

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

Issue 2586373003: MacViews: Allow toolkit-views for "Global Error" bubbles. (Closed)
Patch Set: addObserverForName Created 3 years, 11 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/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" 10 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h"
11 #include "ui/views/bubble/bubble_dialog_delegate.h" 11 #include "ui/views/bubble/bubble_dialog_delegate.h"
12 #include "ui/views/controls/button/button.h" 12 #include "ui/views/controls/button/button.h"
13 13
14 class Browser; 14 class Browser;
15 class ElevationIconSetter; 15 class ElevationIconSetter;
16 class GlobalErrorWithStandardBubble; 16 class GlobalErrorWithStandardBubble;
17 17
18 class GlobalErrorBubbleView : public views::BubbleDialogDelegateView, 18 class GlobalErrorBubbleView : public views::BubbleDialogDelegateView,
19 public GlobalErrorBubbleViewBase { 19 public GlobalErrorBubbleViewBase {
20 public: 20 public:
21 GlobalErrorBubbleView( 21 GlobalErrorBubbleView(
22 views::View* anchor_view, 22 views::View* anchor_view,
23 const gfx::Point& anchor_point,
23 views::BubbleBorder::Arrow arrow, 24 views::BubbleBorder::Arrow arrow,
24 Browser* browser, 25 Browser* browser,
25 const base::WeakPtr<GlobalErrorWithStandardBubble>& error); 26 const base::WeakPtr<GlobalErrorWithStandardBubble>& error);
26 ~GlobalErrorBubbleView() override; 27 ~GlobalErrorBubbleView() override;
27 28
28 // views::WidgetDelegate implementation. 29 // views::WidgetDelegate implementation.
29 base::string16 GetWindowTitle() const override; 30 base::string16 GetWindowTitle() const override;
30 gfx::ImageSkia GetWindowIcon() override; 31 gfx::ImageSkia GetWindowIcon() override;
31 bool ShouldShowWindowIcon() const override; 32 bool ShouldShowWindowIcon() const override;
32 void WindowClosing() override; 33 void WindowClosing() override;
(...skipping 15 matching lines...) Expand all
48 private: 49 private:
49 Browser* browser_; 50 Browser* browser_;
50 base::WeakPtr<GlobalErrorWithStandardBubble> error_; 51 base::WeakPtr<GlobalErrorWithStandardBubble> error_;
51 52
52 std::unique_ptr<ElevationIconSetter> elevation_icon_setter_; 53 std::unique_ptr<ElevationIconSetter> elevation_icon_setter_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); 55 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView);
55 }; 56 };
56 57
57 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ 58 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/views/global_error_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698