OLD | NEW |
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_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // horizontally. Note that this returns the bounds for the toolbar area. | 143 // horizontally. Note that this returns the bounds for the toolbar area. |
144 gfx::Rect GetToolbarBounds() const; | 144 gfx::Rect GetToolbarBounds() const; |
145 | 145 |
146 // Returns the constraining bounding box that should be used to lay out the | 146 // Returns the constraining bounding box that should be used to lay out the |
147 // FindBar within. This is _not_ the size of the find bar, just the bounding | 147 // FindBar within. This is _not_ the size of the find bar, just the bounding |
148 // box it should be laid out within. The coordinate system of the returned | 148 // box it should be laid out within. The coordinate system of the returned |
149 // rect is in the coordinate system of the frame, since the FindBar is a child | 149 // rect is in the coordinate system of the frame, since the FindBar is a child |
150 // window. | 150 // window. |
151 gfx::Rect GetFindBarBoundingBox() const; | 151 gfx::Rect GetFindBarBoundingBox() const; |
152 | 152 |
153 // Returns the preferred height of the TabStrip. Used to position the OTR | 153 // Returns the preferred height of the TabStrip. Used to position the |
154 // avatar icon. | 154 // incognito avatar icon. |
155 int GetTabStripHeight() const; | 155 int GetTabStripHeight() const; |
156 | 156 |
157 // Takes some view's origin (relative to this BrowserView) and offsets it such | 157 // Takes some view's origin (relative to this BrowserView) and offsets it such |
158 // that it can be used as the source origin for seamlessly tiling the toolbar | 158 // that it can be used as the source origin for seamlessly tiling the toolbar |
159 // background image over that view. | 159 // background image over that view. |
160 gfx::Point OffsetPointForToolbarBackgroundImage( | 160 gfx::Point OffsetPointForToolbarBackgroundImage( |
161 const gfx::Point& point) const; | 161 const gfx::Point& point) const; |
162 | 162 |
163 // Container for the tabstrip, toolbar, etc. | 163 // Container for the tabstrip, toolbar, etc. |
164 TopContainerView* top_container() { return top_container_; } | 164 TopContainerView* top_container() { return top_container_; } |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // The class that registers for keyboard shortcuts for extension commands. | 698 // The class that registers for keyboard shortcuts for extension commands. |
699 std::unique_ptr<ExtensionKeybindingRegistryViews> | 699 std::unique_ptr<ExtensionKeybindingRegistryViews> |
700 extension_keybinding_registry_; | 700 extension_keybinding_registry_; |
701 | 701 |
702 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 702 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
703 | 703 |
704 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 704 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
705 }; | 705 }; |
706 | 706 |
707 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 707 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |