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

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

Issue 155242: Add temporary TabStripWrapper interface that is implemented by both TabStrip ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/views/frame/browser_frame_win.h » ('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-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
11 class BrowserView; 11 class BrowserView;
12 class Profile; 12 class Profile;
13 class TabStrip; 13 class TabStripWrapper;
14 class ThemeProvider; 14 class ThemeProvider;
15 15
16 namespace gfx { 16 namespace gfx {
17 class Rect; 17 class Rect;
18 } // namespace gfx 18 } // namespace gfx
19 19
20 namespace views { 20 namespace views {
21 class Window; 21 class Window;
22 22
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 class WindowWin; 24 class WindowWin;
25 #endif 25 #endif
26 } // namespace views 26 } // namespace views
27 27
28 // This is a virtual interface that allows system specific browser frames. 28 // This is a virtual interface that allows system specific browser frames.
29 class BrowserFrame { 29 class BrowserFrame {
30 public: 30 public:
31 virtual ~BrowserFrame() {} 31 virtual ~BrowserFrame() {}
32 32
33 // Creates the appropriate BrowserFrame for this platform. The returned 33 // Creates the appropriate BrowserFrame for this platform. The returned
34 // object is owned by the caller. 34 // object is owned by the caller.
35 static BrowserFrame* Create(BrowserView* browser_view, Profile* profile); 35 static BrowserFrame* Create(BrowserView* browser_view, Profile* profile);
36 36
37 // Returns the Window associated with this frame. Guraranteed non-NULL after 37 // Returns the Window associated with this frame. Guraranteed non-NULL after
38 // construction. 38 // construction.
39 virtual views::Window* GetWindow() = 0; 39 virtual views::Window* GetWindow() = 0;
40 40
41 // Notification that the tab strip has been created. This should let the 41 // Notification that the tab strip has been created. This should let the
42 // BrowserRootView know about it so it can enable drag and drop. 42 // BrowserRootView know about it so it can enable drag and drop.
43 virtual void TabStripCreated(TabStrip* tabstrip) = 0; 43 virtual void TabStripCreated(TabStripWrapper* tabstrip) = 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(TabStrip* tabstrip) const = 0; 51 virtual gfx::Rect GetBoundsForTabStrip(TabStripWrapper* tabstrip) const = 0;
52 52
53 // Tells the frame to update the throbber. 53 // Tells the frame to update the throbber.
54 virtual void UpdateThrobber(bool running) = 0; 54 virtual void UpdateThrobber(bool running) = 0;
55 55
56 // Tells the frame to continue a drag detached tab operation. 56 // Tells the frame to continue a drag detached tab operation.
57 virtual void ContinueDraggingDetachedTab() = 0; 57 virtual void ContinueDraggingDetachedTab() = 0;
58 58
59 // Returns the theme provider for this frame. 59 // Returns the theme provider for this frame.
60 virtual ThemeProvider* GetThemeProviderForFrame() const = 0; 60 virtual ThemeProvider* GetThemeProviderForFrame() const = 0;
61 }; 61 };
62 62
63 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_ 63 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/frame/browser_frame_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698