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_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ |
7 | 7 |
8 #include "third_party/skia/include/core/SkColor.h" | 8 #include "third_party/skia/include/core/SkColor.h" |
9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
10 #include "ui/views/animation/bounds_animator.h" | 10 #include "ui/views/animation/bounds_animator.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 public: | 27 public: |
28 // Creates a new LocationBarContainer as a child of |parent|. | 28 // Creates a new LocationBarContainer as a child of |parent|. |
29 LocationBarContainer(views::View* parent, bool instant_extended_api_enabled); | 29 LocationBarContainer(views::View* parent, bool instant_extended_api_enabled); |
30 virtual ~LocationBarContainer(); | 30 virtual ~LocationBarContainer(); |
31 | 31 |
32 // Sets whether the LocationBarContainer is in the toolbar. | 32 // Sets whether the LocationBarContainer is in the toolbar. |
33 void SetInToolbar(bool in_toolbar); | 33 void SetInToolbar(bool in_toolbar); |
34 | 34 |
35 void SetLocationBarView(LocationBarView* view); | 35 void SetLocationBarView(LocationBarView* view); |
36 | 36 |
| 37 LocationBarView* location_bar_view() { return location_bar_view_; } |
| 38 |
37 // Stacks this view at the top. More specifically stacks the layer (aura) | 39 // Stacks this view at the top. More specifically stacks the layer (aura) |
38 // or widget (windows) at the top of the stack. Used to ensure this is over | 40 // or widget (windows) at the top of the stack. Used to ensure this is over |
39 // web contents. | 41 // web contents. |
40 void StackAtTop(); | 42 void StackAtTop(); |
41 | 43 |
42 // Animates to the specified position. | 44 // Animates to the specified position. |
43 void AnimateTo(const gfx::Rect& bounds); | 45 void AnimateTo(const gfx::Rect& bounds); |
44 | 46 |
45 // Returns true if animating. | 47 // Returns true if animating. |
46 bool IsAnimating() const; | 48 bool IsAnimating() const; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 LocationBarView* location_bar_view_; | 85 LocationBarView* location_bar_view_; |
84 | 86 |
85 views::NativeViewHost* native_view_host_; | 87 views::NativeViewHost* native_view_host_; |
86 | 88 |
87 bool in_toolbar_; | 89 bool in_toolbar_; |
88 | 90 |
89 DISALLOW_COPY_AND_ASSIGN(LocationBarContainer); | 91 DISALLOW_COPY_AND_ASSIGN(LocationBarContainer); |
90 }; | 92 }; |
91 | 93 |
92 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ | 94 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ |
OLD | NEW |