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

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

Issue 797413002: MacViews: Compile more Views source files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 #include "chrome/browser/ui/views/extensions/extension_installed_bubble_view.h" 5 #include "chrome/browser/ui/views/extensions/extension_installed_bubble_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 192
193 if (flavors_ & SHOW_KEYBINDING) { 193 if (flavors_ & SHOW_KEYBINDING) {
194 manage_shortcut_ = new views::Link( 194 manage_shortcut_ = new views::Link(
195 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_SHORTCUTS)); 195 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_MANAGE_SHORTCUTS));
196 manage_shortcut_->set_listener(this); 196 manage_shortcut_->set_listener(this);
197 AddChildView(manage_shortcut_); 197 AddChildView(manage_shortcut_);
198 } 198 }
199 199
200 if (flavors_ & HOW_TO_MANAGE) { 200 if (flavors_ & HOW_TO_MANAGE) {
201 manage_ = new views::Label(l10n_util::GetStringUTF16( 201 manage_ = new views::Label(l10n_util::GetStringUTF16(
202 #if defined(OS_CHROMEOS)
203 IDS_EXTENSION_INSTALLED_MANAGE_INFO_CHROMEOS));
204 #else
205 IDS_EXTENSION_INSTALLED_MANAGE_INFO)); 202 IDS_EXTENSION_INSTALLED_MANAGE_INFO));
206 #endif
207 manage_->SetFontList(font_list); 203 manage_->SetFontList(font_list);
208 manage_->SetMultiLine(true); 204 manage_->SetMultiLine(true);
209 manage_->SetHorizontalAlignment(gfx::ALIGN_LEFT); 205 manage_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
210 AddChildView(manage_); 206 AddChildView(manage_);
211 } 207 }
212 208
213 if (flavors_ & SIGN_IN_PROMO) { 209 if (flavors_ & SIGN_IN_PROMO) {
214 signin_promo_text_ = 210 signin_promo_text_ =
215 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_SIGNIN_PROMO); 211 l10n_util::GetStringUTF16(IDS_EXTENSION_INSTALLED_SIGNIN_PROMO);
216 212
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION && 594 if (bubble_.extension() && bubble_.type() == bubble_.PAGE_ACTION &&
599 !extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()) { 595 !extensions::FeatureSwitch::extension_action_redesign()->IsEnabled()) {
600 BrowserView* browser_view = 596 BrowserView* browser_view =
601 BrowserView::GetBrowserViewForBrowser(bubble_.browser()); 597 BrowserView::GetBrowserViewForBrowser(bubble_.browser());
602 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction( 598 browser_view->GetLocationBarView()->SetPreviewEnabledPageAction(
603 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())-> 599 extensions::ExtensionActionManager::Get(bubble_.browser()->profile())->
604 GetPageAction(*bubble_.extension()), 600 GetPageAction(*bubble_.extension()),
605 false); // preview_enabled 601 false); // preview_enabled
606 } 602 }
607 } 603 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698