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

Side by Side Diff: chrome/browser/ui/browser_window.h

Issue 13139004: Deprecate Browser::TYPE_PANEL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_UI_BROWSER_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/lifetime/application_lifetime.h" 9 #include "chrome/browser/lifetime/application_lifetime.h"
10 #include "chrome/browser/ui/base_window.h" 10 #include "chrome/browser/ui/base_window.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 // Returns whether the tool bar is visible or not. 176 // Returns whether the tool bar is visible or not.
177 virtual bool IsToolbarVisible() const = 0; 177 virtual bool IsToolbarVisible() const = 0;
178 178
179 // Returns the rect where the resize corner should be drawn by the render 179 // Returns the rect where the resize corner should be drawn by the render
180 // widget host view (on top of what the renderer returns). We return an empty 180 // widget host view (on top of what the renderer returns). We return an empty
181 // rect to identify that there shouldn't be a resize corner (in the cases 181 // rect to identify that there shouldn't be a resize corner (in the cases
182 // where we take care of it ourselves at the browser level). 182 // where we take care of it ourselves at the browser level).
183 virtual gfx::Rect GetRootWindowResizerRect() const = 0; 183 virtual gfx::Rect GetRootWindowResizerRect() const = 0;
184 184
185 // Returns whether the window is a panel. This is not always synonomous
186 // with the associated browser having type panel since some environments
187 // may draw popups in panel windows.
188 virtual bool IsPanel() const = 0;
189
190 // Tells the frame not to render as inactive until the next activation change. 185 // Tells the frame not to render as inactive until the next activation change.
191 // This is required on Windows when dropdown selects are shown to prevent the 186 // This is required on Windows when dropdown selects are shown to prevent the
192 // select from deactivating the browser frame. A stub implementation is 187 // select from deactivating the browser frame. A stub implementation is
193 // provided here since the functionality is Windows-specific. 188 // provided here since the functionality is Windows-specific.
194 virtual void DisableInactiveFrame() {} 189 virtual void DisableInactiveFrame() {}
195 190
196 // Shows a confirmation dialog box for adding a search engine described by 191 // Shows a confirmation dialog box for adding a search engine described by
197 // |template_url|. Takes ownership of |template_url|. 192 // |template_url|. Takes ownership of |template_url|.
198 virtual void ConfirmAddSearchProvider(TemplateURL* template_url, 193 virtual void ConfirmAddSearchProvider(TemplateURL* template_url,
199 Profile* profile) = 0; 194 Profile* profile) = 0;
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 385
391 // Returns the ToolbarView. 386 // Returns the ToolbarView.
392 virtual ToolbarView* GetToolbarView() const = 0; 387 virtual ToolbarView* GetToolbarView() const = 0;
393 #endif 388 #endif
394 389
395 protected: 390 protected:
396 virtual ~BrowserWindowTesting() {} 391 virtual ~BrowserWindowTesting() {}
397 }; 392 };
398 393
399 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ 394 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698