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

Side by Side Diff: chrome/browser/ui/views/frame/browser_view_layout.h

Issue 6332013: views: Forward declare "class View;" in layout_manager.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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/ui/views/frame/browser_view_layout.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h"
10 #include "gfx/rect.h"
9 #include "views/layout/layout_manager.h" 11 #include "views/layout/layout_manager.h"
10 12
11 class BaseTabStrip; 13 class BaseTabStrip;
12 class BookmarkBarView; 14 class BookmarkBarView;
13 class Browser; 15 class Browser;
14 class BrowserView; 16 class BrowserView;
15 class ContentsContainer; 17 class ContentsContainer;
16 class DownloadShelfView; 18 class DownloadShelfView;
17 class TabContentsContainer; 19 class TabContentsContainer;
18 class ToolbarView; 20 class ToolbarView;
19 21
22 namespace gfx {
23 class Point;
24 class Size;
25 }
26
20 namespace views { 27 namespace views {
21 class SingleSplitView; 28 class SingleSplitView;
22 } 29 }
23 30
24 // The layout manager used in chrome browser. 31 // The layout manager used in chrome browser.
25 class BrowserViewLayout : public views::LayoutManager { 32 class BrowserViewLayout : public views::LayoutManager {
26 public: 33 public:
27 BrowserViewLayout(); 34 BrowserViewLayout();
28 virtual ~BrowserViewLayout() {} 35 virtual ~BrowserViewLayout();
29 36
30 // Returns the minimum size of the browser view. 37 // Returns the minimum size of the browser view.
31 virtual gfx::Size GetMinimumSize(); 38 virtual gfx::Size GetMinimumSize();
32 39
33 // Returns the bounding box for the find bar. 40 // Returns the bounding box for the find bar.
34 virtual gfx::Rect GetFindBarBoundingBox() const; 41 virtual gfx::Rect GetFindBarBoundingBox() const;
35 42
36 // Returns true if the specified point(BrowserView coordinates) is in 43 // Returns true if the specified point(BrowserView coordinates) is in
37 // in the window caption area of the browser window. 44 // in the window caption area of the browser window.
38 virtual bool IsPositionInWindowCaption(const gfx::Point& point); 45 virtual bool IsPositionInWindowCaption(const gfx::Point& point);
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // of the BrowserView less the width of the SideTabstrip. 123 // of the BrowserView less the width of the SideTabstrip.
117 gfx::Rect vertical_layout_rect_; 124 gfx::Rect vertical_layout_rect_;
118 125
119 // The distance the FindBar is from the top of the window, in pixels. 126 // The distance the FindBar is from the top of the window, in pixels.
120 int find_bar_y_; 127 int find_bar_y_;
121 128
122 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); 129 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout);
123 }; 130 };
124 131
125 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 132 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
126
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_view_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698