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

Side by Side Diff: chrome/browser/views/frame/browser_view.h

Issue 62167: Distributor logo and " - App Name" shouldn't be shown on app frame windows.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/views/frame/glass_browser_frame_view.cc » ('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 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
7 7
8 #include "chrome/browser/browser.h" 8 #include "chrome/browser/browser.h"
9 #include "chrome/browser/browser_window.h" 9 #include "chrome/browser/browser_window.h"
10 #include "chrome/browser/hang_monitor/hung_plugin_action.h" 10 #include "chrome/browser/hang_monitor/hung_plugin_action.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Called right before displaying the system menu to allow the BrowserView 151 // Called right before displaying the system menu to allow the BrowserView
152 // to add or delete entries. 152 // to add or delete entries.
153 void PrepareToRunSystemMenu(HMENU menu); 153 void PrepareToRunSystemMenu(HMENU menu);
154 154
155 // Returns true if the Browser object associated with this BrowserView is a 155 // Returns true if the Browser object associated with this BrowserView is a
156 // normal-type window (i.e. a browser window, not an app or popup). 156 // normal-type window (i.e. a browser window, not an app or popup).
157 bool IsBrowserTypeNormal() const { 157 bool IsBrowserTypeNormal() const {
158 return browser_->type() == Browser::TYPE_NORMAL; 158 return browser_->type() == Browser::TYPE_NORMAL;
159 } 159 }
160 160
161 // Returns true if the frame containing this BrowserView should show the
162 // distributor logo.
163 bool ShouldShowDistributorLogo() const {
164 return browser_->ShouldShowDistributorLogo();
165 }
166
161 // Register preferences specific to this view. 167 // Register preferences specific to this view.
162 static void RegisterBrowserViewPrefs(PrefService* prefs); 168 static void RegisterBrowserViewPrefs(PrefService* prefs);
163 169
164 // Overridden from BrowserWindow: 170 // Overridden from BrowserWindow:
165 virtual void Show(); 171 virtual void Show();
166 virtual void SetBounds(const gfx::Rect& bounds); 172 virtual void SetBounds(const gfx::Rect& bounds);
167 virtual void Close(); 173 virtual void Close();
168 virtual void Activate(); 174 virtual void Activate();
169 virtual bool IsActive() const; 175 virtual bool IsActive() const;
170 virtual void FlashFrame(); 176 virtual void FlashFrame();
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 // P13N stuff 433 // P13N stuff
428 #ifdef CHROME_PERSONALIZATION 434 #ifdef CHROME_PERSONALIZATION
429 FramePersonalization personalization_; 435 FramePersonalization personalization_;
430 bool personalization_enabled_; 436 bool personalization_enabled_;
431 #endif 437 #endif
432 438
433 DISALLOW_COPY_AND_ASSIGN(BrowserView); 439 DISALLOW_COPY_AND_ASSIGN(BrowserView);
434 }; 440 };
435 441
436 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_ 442 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser.cc ('k') | chrome/browser/views/frame/glass_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698