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

Side by Side Diff: chrome/browser/views/frame/browser_frame.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) 2006-2008 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_FRAME_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "views/window/non_client_view.h" 10 #include "views/window/non_client_view.h"
11 11
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual views::Window* GetWindow() = 0; 43 virtual views::Window* GetWindow() = 0;
44 44
45 // Determine the distance of the left edge of the minimize button from the 45 // Determine the distance of the left edge of the minimize button from the
46 // left edge of the window. Used in our Non-Client View's Layout. 46 // left edge of the window. Used in our Non-Client View's Layout.
47 virtual int GetMinimizeButtonOffset() const = 0; 47 virtual int GetMinimizeButtonOffset() const = 0;
48 48
49 // Retrieves the bounds, in non-client view coordinates for the specified 49 // Retrieves the bounds, in non-client view coordinates for the specified
50 // TabStrip. 50 // TabStrip.
51 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; 51 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0;
52 52
53 // Returns the y coordinate within the window at which the horizontal TabStrip
54 // begins (or would begin). If |restored| is true, this is calculated as if
55 // we were in restored mode regardless of the current mode.
56 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const = 0;
57
53 // Tells the frame to update the throbber. 58 // Tells the frame to update the throbber.
54 virtual void UpdateThrobber(bool running) = 0; 59 virtual void UpdateThrobber(bool running) = 0;
55 60
56 // Tells the frame to continue a drag detached tab operation. 61 // Tells the frame to continue a drag detached tab operation.
57 virtual void ContinueDraggingDetachedTab() = 0; 62 virtual void ContinueDraggingDetachedTab() = 0;
58 63
59 // Returns the theme provider for this frame. 64 // Returns the theme provider for this frame.
60 virtual ThemeProvider* GetThemeProviderForFrame() const = 0; 65 virtual ThemeProvider* GetThemeProviderForFrame() const = 0;
61 66
62 // Returns true if the window should use the native frame view. This is true 67 // Returns true if the window should use the native frame view. This is true
63 // if there are no themes applied on Vista, or if there are themes applied and 68 // if there are no themes applied on Vista, or if there are themes applied and
64 // this browser window is an app or popup. 69 // this browser window is an app or popup.
65 virtual bool AlwaysUseNativeFrame() const = 0; 70 virtual bool AlwaysUseNativeFrame() const = 0;
66 71
67 // Returns the NonClientFrameView of this frame. 72 // Returns the NonClientFrameView of this frame.
68 virtual views::View* GetFrameView() const = 0; 73 virtual views::View* GetFrameView() const = 0;
69 74
70 // Notifies the frame that the tab strip display mode changed so it can update 75 // Notifies the frame that the tab strip display mode changed so it can update
71 // its frame treatment if necessary. 76 // its frame treatment if necessary.
72 virtual void TabStripDisplayModeChanged() = 0; 77 virtual void TabStripDisplayModeChanged() = 0;
73 }; 78 };
74 79
75 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ 80 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/app_panel_browser_frame_view.cc ('k') | chrome/browser/views/frame/browser_frame_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698