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

Side by Side Diff: chrome/browser/ui/views/extensions/disabled_extensions_view.cc

Issue 13142003: Fix app list position in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 8 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 #include "chrome/browser/ui/views/extensions/disabled_extensions_view.h" 5 #include "chrome/browser/ui/views/extensions/disabled_extensions_view.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 headline_(NULL), 80 headline_(NULL),
81 learn_more_(NULL), 81 learn_more_(NULL),
82 settings_button_(NULL), 82 settings_button_(NULL),
83 dismiss_button_(NULL), 83 dismiss_button_(NULL),
84 recourse_(NULL) { 84 recourse_(NULL) {
85 set_close_on_deactivate(false); 85 set_close_on_deactivate(false);
86 set_move_with_anchor(true); 86 set_move_with_anchor(true);
87 set_close_on_esc(true); 87 set_close_on_esc(true);
88 88
89 // Compensate for built-in vertical padding in the anchor view's image. 89 // Compensate for built-in vertical padding in the anchor view's image.
90 set_anchor_insets(gfx::Insets(5, 0, 5, 0)); 90 set_anchor_view_insets(gfx::Insets(5, 0, 5, 0));
91 91
92 UMA_HISTOGRAM_COUNTS_100("DisabledExtension.SideloadWipeoutCount", 92 UMA_HISTOGRAM_COUNTS_100("DisabledExtension.SideloadWipeoutCount",
93 wiped_out->size()); 93 wiped_out->size());
94 } 94 }
95 95
96 // static 96 // static
97 void DisabledExtensionsView::MaybeShow(Browser* browser, 97 void DisabledExtensionsView::MaybeShow(Browser* browser,
98 views::View* anchor_view) { 98 views::View* anchor_view) {
99 if (!extensions::FeatureSwitch::sideload_wipeout()->IsEnabled()) 99 if (!extensions::FeatureSwitch::sideload_wipeout()->IsEnabled())
100 return; 100 return;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 383 }
384 384
385 void DisabledExtensionsView::ViewHierarchyChanged(bool is_add, 385 void DisabledExtensionsView::ViewHierarchyChanged(bool is_add,
386 View* parent, 386 View* parent,
387 View* child) { 387 View* child) {
388 if (is_add && child == this) { 388 if (is_add && child == this) {
389 GetWidget()->NotifyAccessibilityEvent( 389 GetWidget()->NotifyAccessibilityEvent(
390 this, ui::AccessibilityTypes::EVENT_ALERT, true); 390 this, ui::AccessibilityTypes::EVENT_ALERT, true);
391 } 391 }
392 } 392 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/content_setting_bubble_contents.cc ('k') | chrome/browser/ui/views/first_run_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698