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

Unified Diff: chrome/browser/dom_ui/dom_ui.h

Issue 175017: Experiment with dislodging the Extension Shelf and having it only appear on t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « chrome/browser/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/dom_ui.h
===================================================================
--- chrome/browser/dom_ui/dom_ui.h (revision 24842)
+++ chrome/browser/dom_ui/dom_ui.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -61,6 +61,12 @@
return force_bookmark_bar_visible_;
}
+ // Returns true if the extension shelf should be forced to being visible
+ // (if it contains any items), overriding the user's preference.
+ bool force_extension_shelf_visible() const {
+ return force_extension_shelf_visible_;
+ }
+
// Returns true if the location bar should be focused by default rather than
// the page contents. Some pages will want to use this to encourage the user
// to type in the URL bar.
@@ -116,6 +122,7 @@
// bool options default to false. See the public getters for more information.
bool hide_favicon_;
bool force_bookmark_bar_visible_;
+ bool force_extension_shelf_visible_;
bool focus_location_bar_by_default_;
bool should_hide_url_;
string16 overridden_title_; // Defaults to empty string.
@@ -146,7 +153,7 @@
class DOMMessageHandler {
public:
DOMMessageHandler() : dom_ui_(NULL) {}
- virtual ~DOMMessageHandler() {};
+ virtual ~DOMMessageHandler() {}
// Attaches |this| to |dom_ui| in order to handle messages from it. Declared
// virtual so that subclasses can do special init work as soon as the dom_ui
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698