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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc

Issue 2807653002: Ensure default dialog button focus remains after a dialog update. (Closed)
Patch Set: Showing widget for only the focus tests. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
index 2e83f92f8b42dd197b4a54275fb9b46d4a4b6fa7..005b8a0d60a556c0110efb6ea470da06820df323 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
@@ -81,6 +81,9 @@ constexpr int kNoPermissionsLeftColumnWidth = 200;
// this case, so make it wider than normal.
constexpr int kExternalInstallLeftColumnWidth = 350;
+// Time delay before the install button is enabled after initial display.
+int g_install_delay_in_ms = 500;
+
// Get the appropriate indentation for an item if its parent is using bullet
// points. If the parent is using bullets for its items, then a padding of one
// unit will make the child item (which has no bullet) look like a sibling of
@@ -92,9 +95,6 @@ int GetLeftPaddingForBulletedItems(bool parent_bulleted) {
(parent_bulleted ? 2 : 1);
}
-// Time delay before the install button is enabled after initial display.
-int g_install_delay_in_ms = 500;
-
void AddResourceIcon(const gfx::ImageSkia* skia_image, void* data) {
views::View* parent = static_cast<views::View*>(data);
views::ImageView* image_view = new views::ImageView();
« no previous file with comments | « no previous file | chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698