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

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

Issue 547253002: Ensure app install is aborted when the install dialog is closed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lower risk fix Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/extension_install_dialog_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/extensions/extension_install_prompt.h" 8 #include "chrome/browser/extensions/extension_install_prompt.h"
9 #include "ui/gfx/animation/animation_delegate.h" 9 #include "ui/gfx/animation/animation_delegate.h"
10 #include "ui/gfx/animation/slide_animation.h" 10 #include "ui/gfx/animation/slide_animation.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 typedef std::vector<ExpandableContainerView*> InlineExplanations; 142 typedef std::vector<ExpandableContainerView*> InlineExplanations;
143 InlineExplanations inline_explanations_; 143 InlineExplanations inline_explanations_;
144 144
145 // Experimental: Number of unchecked checkboxes in the permission list. 145 // Experimental: Number of unchecked checkboxes in the permission list.
146 // If this becomes zero, the accept button is enabled, otherwise disabled. 146 // If this becomes zero, the accept button is enabled, otherwise disabled.
147 int unchecked_boxes_; 147 int unchecked_boxes_;
148 148
149 // ExperienceSampling: Track this UI event. 149 // ExperienceSampling: Track this UI event.
150 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_; 150 scoped_ptr<extensions::ExperienceSamplingEvent> sampling_event_;
151 151
152 // Set to true once the user's selection has been received and the
153 // |delegate_| has been notified.
154 bool handled_result_;
155
152 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallDialogView); 156 DISALLOW_COPY_AND_ASSIGN(ExtensionInstallDialogView);
153 }; 157 };
154 158
155 // A simple view that prepends a view with a bullet with the help of a grid 159 // A simple view that prepends a view with a bullet with the help of a grid
156 // layout. 160 // layout.
157 class BulletedView : public views::View { 161 class BulletedView : public views::View {
158 public: 162 public:
159 explicit BulletedView(views::View* view); 163 explicit BulletedView(views::View* view);
160 private: 164 private:
161 DISALLOW_COPY_AND_ASSIGN(BulletedView); 165 DISALLOW_COPY_AND_ASSIGN(BulletedView);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 258
255 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView); 259 DISALLOW_COPY_AND_ASSIGN(ExpandableContainerView);
256 }; 260 };
257 261
258 void ShowExtensionInstallDialogImpl( 262 void ShowExtensionInstallDialogImpl(
259 const ExtensionInstallPrompt::ShowParams& show_params, 263 const ExtensionInstallPrompt::ShowParams& show_params,
260 ExtensionInstallPrompt::Delegate* delegate, 264 ExtensionInstallPrompt::Delegate* delegate,
261 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt); 265 scoped_refptr<ExtensionInstallPrompt::Prompt> prompt);
262 266
263 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_ 267 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_INSTALL_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | 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