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

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

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
13 #include "ui/views/layout/layout_manager.h" 13 #include "ui/views/layout/layout_manager.h"
14 14
15 class BookmarkBarView; 15 class BookmarkBarView;
16 class Browser; 16 class Browser;
17 class BrowserView; 17 class BrowserView;
18 class BrowserViewLayoutDelegate; 18 class BrowserViewLayoutDelegate;
19 class ContentsContainer; 19 class ContentsContainer;
20 class ImmersiveModeController; 20 class ImmersiveModeController;
21 class InfoBarContainerView; 21 class InfoBarContainerView;
22 class OverlayContainer; 22 class OverlayContainer;
23 class TabContentsContainer; 23 class TabContentsContainer;
24 class TabStrip; 24 class TabStrip;
25 class TopContainerView;
26 class WebContentsModalDialogHost;
27 25
28 namespace gfx { 26 namespace gfx {
29 class Point; 27 class Point;
30 class Size; 28 class Size;
31 } 29 }
32 30
33 namespace views { 31 namespace views {
34 class SingleSplitView; 32 class SingleSplitView;
35 } 33 }
36 34
35 namespace web_modal {
36 class WebContentsModalDialogHost;
37 }
38
37 // The layout manager used in chrome browser. 39 // The layout manager used in chrome browser.
38 class BrowserViewLayout : public views::LayoutManager { 40 class BrowserViewLayout : public views::LayoutManager {
39 public: 41 public:
40 // The vertical overlap between the TabStrip and the Toolbar. 42 // The vertical overlap between the TabStrip and the Toolbar.
41 static const int kToolbarTabStripVerticalOverlap; 43 static const int kToolbarTabStripVerticalOverlap;
42 44
43 BrowserViewLayout(); 45 BrowserViewLayout();
44 virtual ~BrowserViewLayout(); 46 virtual ~BrowserViewLayout();
45 47
46 // Sets all the views to be managed. Takes ownership of |delegate|. 48 // Sets all the views to be managed. Takes ownership of |delegate|.
(...skipping 17 matching lines...) Expand all
64 void set_tab_strip(TabStrip* tab_strip) { 66 void set_tab_strip(TabStrip* tab_strip) {
65 tab_strip_ = tab_strip; 67 tab_strip_ = tab_strip;
66 } 68 }
67 void set_bookmark_bar(BookmarkBarView* bookmark_bar) { 69 void set_bookmark_bar(BookmarkBarView* bookmark_bar) {
68 bookmark_bar_ = bookmark_bar; 70 bookmark_bar_ = bookmark_bar;
69 } 71 }
70 void set_download_shelf(views::View* download_shelf) { 72 void set_download_shelf(views::View* download_shelf) {
71 download_shelf_ = download_shelf; 73 download_shelf_ = download_shelf;
72 } 74 }
73 75
74 WebContentsModalDialogHost* GetWebContentsModalDialogHost(); 76 web_modal::WebContentsModalDialogHost* GetWebContentsModalDialogHost();
75 77
76 // Returns the minimum size of the browser view. 78 // Returns the minimum size of the browser view.
77 gfx::Size GetMinimumSize(); 79 gfx::Size GetMinimumSize();
78 80
79 // Returns the bounding box, in widget coordinates, for the find bar. 81 // Returns the bounding box, in widget coordinates, for the find bar.
80 gfx::Rect GetFindBarBoundingBox() const; 82 gfx::Rect GetFindBarBoundingBox() const;
81 83
82 // Returns true if the specified point(BrowserView coordinates) is in 84 // Returns true if the specified point(BrowserView coordinates) is in
83 // in the window caption area of the browser window. 85 // in the window caption area of the browser window.
84 bool IsPositionInWindowCaption(const gfx::Point& point); 86 bool IsPositionInWindowCaption(const gfx::Point& point);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_; 192 scoped_ptr<WebContentsModalDialogHostViews> dialog_host_;
191 193
192 // The distance the web contents modal dialog is from the top of the window, 194 // The distance the web contents modal dialog is from the top of the window,
193 // in pixels. 195 // in pixels.
194 int web_contents_modal_dialog_top_y_; 196 int web_contents_modal_dialog_top_y_;
195 197
196 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout); 198 DISALLOW_COPY_AND_ASSIGN(BrowserViewLayout);
197 }; 199 };
198 200
199 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_ 201 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_LAYOUT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/browser_view_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698