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

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

Issue 3137019: Fix numerous alignment problems, both horizontal and vertical, in drawing the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_NON_CLIENT_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/window/non_client_view.h" 9 #include "views/window/non_client_view.h"
10 10
11 class BaseTabStrip; 11 class BaseTabStrip;
12 12
13 // A specialization of the NonClientFrameView object that provides additional 13 // A specialization of the NonClientFrameView object that provides additional
14 // Browser-specific methods. 14 // Browser-specific methods.
15 class BrowserNonClientFrameView : public views::NonClientFrameView { 15 class BrowserNonClientFrameView : public views::NonClientFrameView {
16 public: 16 public:
17 BrowserNonClientFrameView() : NonClientFrameView() {} 17 BrowserNonClientFrameView() : NonClientFrameView() {}
18 virtual ~BrowserNonClientFrameView() {} 18 virtual ~BrowserNonClientFrameView() {}
19 19
20 // Returns the bounds within which the TabStrip should be laid out. 20 // Returns the bounds within which the TabStrip should be laid out.
21 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; 21 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0;
22 22
23 // Returns the y coordinate within the window at which the horizontal TabStrip
24 // begins, or (in vertical tabs mode) would begin. If |restored| is true,
25 // this is calculated as if we were in restored mode regardless of the current
26 // mode. This is used to correctly align theme images.
27 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0;
28
23 // Updates the throbber. 29 // Updates the throbber.
24 virtual void UpdateThrobber(bool running) = 0; 30 virtual void UpdateThrobber(bool running) = 0;
25 }; 31 };
26 32
27 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_ 33 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_NON_CLIENT_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_frame_win.cc ('k') | chrome/browser/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698