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

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

Issue 1141005: Revert r42156, r42157, r42160. Allow dynamic switching in and out of sidetabs... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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) 2006-2008 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 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "views/window/non_client_view.h" 9 #include "views/window/non_client_view.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // Creates the appropriate BrowserFrame for this platform. The returned 34 // Creates the appropriate BrowserFrame for this platform. The returned
35 // object is owned by the caller. 35 // object is owned by the caller.
36 static BrowserFrame* Create(BrowserView* browser_view, Profile* profile); 36 static BrowserFrame* Create(BrowserView* browser_view, Profile* profile);
37 37
38 static const gfx::Font& GetTitleFont(); 38 static const gfx::Font& GetTitleFont();
39 39
40 // Returns the Window associated with this frame. Guraranteed non-NULL after 40 // Returns the Window associated with this frame. Guraranteed non-NULL after
41 // construction. 41 // construction.
42 virtual views::Window* GetWindow() = 0; 42 virtual views::Window* GetWindow() = 0;
43 43
44 // Notification that the tab strip has been created. This should let the
45 // BrowserRootView know about it so it can enable drag and drop.
46 virtual void TabStripCreated(BaseTabStrip* tabstrip) = 0;
47
44 // Determine the distance of the left edge of the minimize button from the 48 // Determine the distance of the left edge of the minimize button from the
45 // left edge of the window. Used in our Non-Client View's Layout. 49 // left edge of the window. Used in our Non-Client View's Layout.
46 virtual int GetMinimizeButtonOffset() const = 0; 50 virtual int GetMinimizeButtonOffset() const = 0;
47 51
48 // Retrieves the bounds, in non-client view coordinates for the specified 52 // Retrieves the bounds, in non-client view coordinates for the specified
49 // TabStrip. 53 // TabStrip.
50 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0; 54 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const = 0;
51 55
52 // Tells the frame to update the throbber. 56 // Tells the frame to update the throbber.
53 virtual void UpdateThrobber(bool running) = 0; 57 virtual void UpdateThrobber(bool running) = 0;
54 58
55 // Tells the frame to continue a drag detached tab operation. 59 // Tells the frame to continue a drag detached tab operation.
56 virtual void ContinueDraggingDetachedTab() = 0; 60 virtual void ContinueDraggingDetachedTab() = 0;
57 61
58 // Returns the theme provider for this frame. 62 // Returns the theme provider for this frame.
59 virtual ThemeProvider* GetThemeProviderForFrame() const = 0; 63 virtual ThemeProvider* GetThemeProviderForFrame() const = 0;
60 64
61 // Returns true if the window should use the native frame view. This is true 65 // Returns true if the window should use the native frame view. This is true
62 // if there are no themes applied on Vista, or if there are themes applied and 66 // if there are no themes applied on Vista, or if there are themes applied and
63 // this browser window is an app or popup. 67 // this browser window is an app or popup.
64 virtual bool AlwaysUseNativeFrame() const = 0; 68 virtual bool AlwaysUseNativeFrame() const = 0;
65 69
66 // Returns the NonClientFrameView of this frame. 70 // Returns the NonClientFrameView of this frame.
67 virtual views::View* GetFrameView() const = 0; 71 virtual views::View* GetFrameView() const = 0;
68 72
69 // Paints the shadow edge along the side of the side tabstrip. The BrowserView 73 // Paints the shadow edge along the side of the side tabstrip. The BrowserView
70 // calls this method _after_ the TabStrip has painted itself so the shadow is 74 // calls this method _after_ the TabStrip has painted itself so the shadow is
71 // rendered above the tabs. 75 // rendered above the tabs.
72 virtual void PaintTabStripShadow(gfx::Canvas* canvas) = 0; 76 virtual void PaintTabStripShadow(gfx::Canvas* canvas) = 0;
73
74 // Notifies the frame that the tab strip display mode changed so it can update
75 // its frame treatment if necessary.
76 virtual void TabStripDisplayModeChanged() = 0;
77 }; 77 };
78 78
79 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ 79 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model_unittest.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