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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 7121012: DevTools window doesn't restore its minimal size if it's shrinked to zero. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initial idea was reverted. The new version fix gtk problem, make identical logic for all platforms. Created 9 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <shellapi.h> 8 #include <shellapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif // OS_WIN 10 #endif // OS_WIN
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 prefs->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled, 2219 prefs->RegisterBooleanPref(prefs::kCloudPrintProxyEnabled,
2220 true, 2220 true,
2221 PrefService::UNSYNCABLE_PREF); 2221 PrefService::UNSYNCABLE_PREF);
2222 prefs->RegisterBooleanPref(prefs::kDevToolsDisabled, 2222 prefs->RegisterBooleanPref(prefs::kDevToolsDisabled,
2223 false, 2223 false,
2224 PrefService::UNSYNCABLE_PREF); 2224 PrefService::UNSYNCABLE_PREF);
2225 prefs->RegisterBooleanPref(prefs::kIncognitoEnabled, 2225 prefs->RegisterBooleanPref(prefs::kIncognitoEnabled,
2226 true, 2226 true,
2227 PrefService::UNSYNCABLE_PREF); 2227 PrefService::UNSYNCABLE_PREF);
2228 prefs->RegisterIntegerPref(prefs::kDevToolsSplitLocation, 2228 prefs->RegisterIntegerPref(prefs::kDevToolsSplitLocation,
2229 -1, 2229 400,
2230 PrefService::UNSYNCABLE_PREF); 2230 PrefService::UNSYNCABLE_PREF);
2231 prefs->RegisterDictionaryPref(prefs::kBrowserWindowPlacement, 2231 prefs->RegisterDictionaryPref(prefs::kBrowserWindowPlacement,
2232 PrefService::UNSYNCABLE_PREF); 2232 PrefService::UNSYNCABLE_PREF);
2233 prefs->RegisterDictionaryPref(prefs::kPreferencesWindowPlacement, 2233 prefs->RegisterDictionaryPref(prefs::kPreferencesWindowPlacement,
2234 PrefService::UNSYNCABLE_PREF); 2234 PrefService::UNSYNCABLE_PREF);
2235 // We need to register the type of these preferences in order to query 2235 // We need to register the type of these preferences in order to query
2236 // them even though they're only typically controlled via policy. 2236 // them even though they're only typically controlled via policy.
2237 prefs->RegisterBooleanPref(prefs::kDisable3DAPIs, 2237 prefs->RegisterBooleanPref(prefs::kDisable3DAPIs,
2238 false, 2238 false,
2239 PrefService::UNSYNCABLE_PREF); 2239 PrefService::UNSYNCABLE_PREF);
(...skipping 2455 matching lines...) Expand 10 before | Expand all | Expand 10 after
4695 TabContents* current_tab = GetSelectedTabContents(); 4695 TabContents* current_tab = GetSelectedTabContents();
4696 if (current_tab) { 4696 if (current_tab) {
4697 content_restrictions = current_tab->content_restrictions(); 4697 content_restrictions = current_tab->content_restrictions();
4698 NavigationEntry* active_entry = current_tab->controller().GetActiveEntry(); 4698 NavigationEntry* active_entry = current_tab->controller().GetActiveEntry();
4699 // See comment in UpdateCommandsForTabState about why we call url(). 4699 // See comment in UpdateCommandsForTabState about why we call url().
4700 if (!SavePackage::IsSavableURL(active_entry ? active_entry->url() : GURL())) 4700 if (!SavePackage::IsSavableURL(active_entry ? active_entry->url() : GURL()))
4701 content_restrictions |= CONTENT_RESTRICTION_SAVE; 4701 content_restrictions |= CONTENT_RESTRICTION_SAVE;
4702 } 4702 }
4703 return content_restrictions; 4703 return content_restrictions;
4704 } 4704 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/dev_tools_controller.mm » ('j') | chrome/browser/ui/cocoa/dev_tools_controller.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698