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

Side by Side Diff: chrome/browser/extensions/extension_host.cc

Issue 400027: On Linux, pick the color of the slider's thumbpart from the GTK theme.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | chrome/browser/gtk/gtk_theme_provider.h » ('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 (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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/extensions/extension_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 408
409 void ExtensionHost::Close(RenderViewHost* render_view_host) { 409 void ExtensionHost::Close(RenderViewHost* render_view_host) {
410 if (extension_host_type_ == ViewType::EXTENSION_POPUP) { 410 if (extension_host_type_ == ViewType::EXTENSION_POPUP) {
411 NotificationService::current()->Notify( 411 NotificationService::current()->Notify(
412 NotificationType::EXTENSION_HOST_VIEW_SHOULD_CLOSE, 412 NotificationType::EXTENSION_HOST_VIEW_SHOULD_CLOSE,
413 Source<Profile>(profile_), 413 Source<Profile>(profile_),
414 Details<ExtensionHost>(this)); 414 Details<ExtensionHost>(this));
415 } 415 }
416 } 416 }
417 417
418 RendererPreferences ExtensionHost::GetRendererPrefs() const { 418 RendererPreferences ExtensionHost::GetRendererPrefs(Profile* profile) const {
419 return platform_util::GetInitedRendererPreferences(); 419 return platform_util::GetInitedRendererPreferences(profile);
420 } 420 }
421 421
422 WebPreferences ExtensionHost::GetWebkitPrefs() { 422 WebPreferences ExtensionHost::GetWebkitPrefs() {
423 PrefService* prefs = render_view_host()->process()->profile()->GetPrefs(); 423 PrefService* prefs = render_view_host()->process()->profile()->GetPrefs();
424 const bool kIsDomUI = true; 424 const bool kIsDomUI = true;
425 WebPreferences webkit_prefs = 425 WebPreferences webkit_prefs =
426 RenderViewHostDelegateHelper::GetWebkitPrefs(prefs, kIsDomUI); 426 RenderViewHostDelegateHelper::GetWebkitPrefs(prefs, kIsDomUI);
427 if (extension_host_type_ == ViewType::EXTENSION_POPUP) 427 if (extension_host_type_ == ViewType::EXTENSION_POPUP)
428 webkit_prefs.allow_scripts_to_close_windows = true; 428 webkit_prefs.allow_scripts_to_close_windows = true;
429 return webkit_prefs; 429 return webkit_prefs;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 window_id = ExtensionTabUtil::GetWindowId( 601 window_id = ExtensionTabUtil::GetWindowId(
602 const_cast<ExtensionHost* >(this)->GetBrowser()); 602 const_cast<ExtensionHost* >(this)->GetBrowser());
603 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) { 603 } else if (extension_host_type_ == ViewType::EXTENSION_BACKGROUND_PAGE) {
604 // Background page is not attached to any browser window, so pass -1. 604 // Background page is not attached to any browser window, so pass -1.
605 window_id = -1; 605 window_id = -1;
606 } else { 606 } else {
607 NOTREACHED(); 607 NOTREACHED();
608 } 608 }
609 return window_id; 609 return window_id;
610 } 610 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | chrome/browser/gtk/gtk_theme_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698