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

Side by Side Diff: chrome/browser/views/frame/browser_frame_win.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_WIN_H_ 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_
6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/views/frame/browser_frame.h" 10 #include "chrome/browser/views/frame/browser_frame.h"
11 #include "views/window/window_win.h" 11 #include "views/window/window_win.h"
(...skipping 17 matching lines...) Expand all
29 // Init must be called before using this class, which Create will do for you. 29 // Init must be called before using this class, which Create will do for you.
30 BrowserFrameWin(BrowserView* browser_view, Profile* profile); 30 BrowserFrameWin(BrowserView* browser_view, Profile* profile);
31 virtual ~BrowserFrameWin(); 31 virtual ~BrowserFrameWin();
32 32
33 // This initialization function must be called after construction, it is 33 // This initialization function must be called after construction, it is
34 // separate to avoid recursive calling of the frame from its constructor. 34 // separate to avoid recursive calling of the frame from its constructor.
35 void Init(); 35 void Init();
36 36
37 BrowserView* browser_view() const { return browser_view_; } 37 BrowserView* browser_view() const { return browser_view_; }
38 38
39 // Returns the height of the title bar.
40 int GetTitleBarHeight();
41
42 // BrowserFrame implementation. 39 // BrowserFrame implementation.
43 virtual views::Window* GetWindow(); 40 virtual views::Window* GetWindow();
44 virtual int GetMinimizeButtonOffset() const; 41 virtual int GetMinimizeButtonOffset() const;
45 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; 42 virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const;
43 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const;
46 virtual void UpdateThrobber(bool running); 44 virtual void UpdateThrobber(bool running);
47 virtual void ContinueDraggingDetachedTab(); 45 virtual void ContinueDraggingDetachedTab();
48 virtual ThemeProvider* GetThemeProviderForFrame() const; 46 virtual ThemeProvider* GetThemeProviderForFrame() const;
49 virtual bool AlwaysUseNativeFrame() const; 47 virtual bool AlwaysUseNativeFrame() const;
50 virtual views::View* GetFrameView() const; 48 virtual views::View* GetFrameView() const;
51 virtual void TabStripDisplayModeChanged(); 49 virtual void TabStripDisplayModeChanged();
52 50
53 protected: 51 protected:
54 // Overridden from views::WindowWin: 52 // Overridden from views::WindowWin:
55 virtual gfx::Insets GetClientAreaInsets() const; 53 virtual gfx::Insets GetClientAreaInsets() const;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 BrowserRootView* root_view_; 91 BrowserRootView* root_view_;
94 92
95 bool frame_initialized_; 93 bool frame_initialized_;
96 94
97 Profile* profile_; 95 Profile* profile_;
98 96
99 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); 97 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin);
100 }; 98 };
101 99
102 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ 100 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_frame_gtk.cc ('k') | chrome/browser/views/frame/browser_frame_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698