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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_installed_bubble_view.h

Issue 1717453003: Introduce BubbleDialogDelegateView, which extends DialogDelegateView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/extensions/extension_installed_bubble.h" 9 #include "chrome/browser/ui/extensions/extension_installed_bubble.h"
10 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h" 10 #include "chrome/browser/ui/sync/bubble_sync_promo_delegate.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 BubbleReference bubble_reference); 43 BubbleReference bubble_reference);
44 ~ExtensionInstalledBubbleView() override; 44 ~ExtensionInstalledBubbleView() override;
45 45
46 // Recalculate the anchor position for this bubble. 46 // Recalculate the anchor position for this bubble.
47 void UpdateAnchorView(); 47 void UpdateAnchorView();
48 48
49 void InitLayout(); 49 void InitLayout();
50 50
51 private: 51 private:
52 // views::BubbleDelegateView: 52 // views::BubbleDelegateView:
53 scoped_ptr<views::View> CreateFootnoteView() override; 53 View* CreateFootnoteView() override;
54 void WindowClosing() override; 54 void WindowClosing() override;
55 gfx::Rect GetAnchorRect() const override; 55 gfx::Rect GetAnchorRect() const override;
56 void OnWidgetClosing(views::Widget* widget) override; 56 void OnWidgetClosing(views::Widget* widget) override;
57 void OnWidgetActivationChanged(views::Widget* widget, bool active) override; 57 void OnWidgetActivationChanged(views::Widget* widget, bool active) override;
58 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; 58 bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
59 59
60 // BubbleSyncPromoDelegate: 60 // BubbleSyncPromoDelegate:
61 void OnSignInLinkClicked() override; 61 void OnSignInLinkClicked() override;
62 62
63 // views::LinkListener: 63 // views::LinkListener:
(...skipping 12 matching lines...) Expand all
76 // The button to close the bubble. 76 // The button to close the bubble.
77 views::LabelButton* close_; 77 views::LabelButton* close_;
78 78
79 // The shortcut to open the manage shortcuts page. 79 // The shortcut to open the manage shortcuts page.
80 views::Link* manage_shortcut_; 80 views::Link* manage_shortcut_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleView); 82 DISALLOW_COPY_AND_ASSIGN(ExtensionInstalledBubbleView);
83 }; 83 };
84 84
85 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_VIEW_H_ 85 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALLED_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698