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

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

Issue 2188133002: Scroll with Layers in views::ScrollView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollTrack
Patch Set: bugref, scale_delta DCHECK + comment Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_INSTALL_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/extensions/extension_install_prompt.h" 9 #include "chrome/browser/extensions/extension_install_prompt.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 content::PageNavigator* navigator, 44 content::PageNavigator* navigator,
45 const ExtensionInstallPrompt::DoneCallback& done_callback, 45 const ExtensionInstallPrompt::DoneCallback& done_callback,
46 std::unique_ptr<ExtensionInstallPrompt::Prompt> prompt); 46 std::unique_ptr<ExtensionInstallPrompt::Prompt> prompt);
47 ~ExtensionInstallDialogView() override; 47 ~ExtensionInstallDialogView() override;
48 48
49 // Returns the interior ScrollView of the dialog. This allows us to inspect 49 // Returns the interior ScrollView of the dialog. This allows us to inspect
50 // the contents of the DialogView. 50 // the contents of the DialogView.
51 const views::ScrollView* scroll_view() const { return scroll_view_; } 51 const views::ScrollView* scroll_view() const { return scroll_view_; }
52 52
53 private: 53 private:
54 // views::View:
55 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
56
54 // views::DialogDelegateView: 57 // views::DialogDelegateView:
55 int GetDialogButtons() const override; 58 int GetDialogButtons() const override;
56 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 59 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
57 int GetDefaultDialogButton() const override; 60 int GetDefaultDialogButton() const override;
58 bool Cancel() override; 61 bool Cancel() override;
59 bool Accept() override; 62 bool Accept() override;
60 ui::ModalType GetModalType() const override; 63 ui::ModalType GetModalType() const override;
61 void Layout() override; 64 void Layout() override;
62 gfx::Size GetPreferredSize() const override; 65 gfx::Size GetPreferredSize() const override;
63 66
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // on whether the details section is expanded). 188 // on whether the details section is expanded).
186 views::ImageButton* arrow_toggle_; 189 views::ImageButton* arrow_toggle_;
187 190
188 // Whether the details section is expanded. 191 // Whether the details section is expanded.
189 bool expanded_; 192 bool expanded_;
190 193
191 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); 194 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView);
192 }; 195 };
193 196
194 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ 197 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | chrome/browser/ui/views/extensions/extension_install_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698