| 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/animation/bounds_animator.h" | 9 #include "ui/views/animation/bounds_animator.h" |
| 10 #include "ui/views/animation/bounds_animator_observer.h" | 10 #include "ui/views/animation/bounds_animator_observer.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Returns true if animating. | 45 // Returns true if animating. |
| 46 bool IsAnimating() const; | 46 bool IsAnimating() const; |
| 47 | 47 |
| 48 // Returns the target bounds if animating, or the actual bounds if not | 48 // Returns the target bounds if animating, or the actual bounds if not |
| 49 // animating. | 49 // animating. |
| 50 gfx::Rect GetTargetBounds(); | 50 gfx::Rect GetTargetBounds(); |
| 51 | 51 |
| 52 // views::View overrides: | 52 // views::View overrides: |
| 53 virtual std::string GetClassName() const OVERRIDE; | 53 virtual std::string GetClassName() const OVERRIDE; |
| 54 virtual gfx::Size GetPreferredSize() OVERRIDE; | 54 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 55 virtual void Layout() OVERRIDE; |
| 55 virtual bool SkipDefaultKeyEventProcessing( | 56 virtual bool SkipDefaultKeyEventProcessing( |
| 56 const ui::KeyEvent& event) OVERRIDE; | 57 const ui::KeyEvent& event) OVERRIDE; |
| 57 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 58 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 58 | 59 |
| 59 // views::BoundsAnimatorObserver overrides: | 60 // views::BoundsAnimatorObserver overrides: |
| 60 virtual void OnBoundsAnimatorProgressed( | 61 virtual void OnBoundsAnimatorProgressed( |
| 61 views::BoundsAnimator* animator) OVERRIDE {} | 62 views::BoundsAnimator* animator) OVERRIDE {} |
| 62 virtual void OnBoundsAnimatorDone(views::BoundsAnimator* animator) OVERRIDE; | 63 virtual void OnBoundsAnimatorDone(views::BoundsAnimator* animator) OVERRIDE; |
| 63 | 64 |
| 64 protected: | 65 protected: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 85 views::NativeViewHost* native_view_host_; | 86 views::NativeViewHost* native_view_host_; |
| 86 | 87 |
| 87 bool in_toolbar_; | 88 bool in_toolbar_; |
| 88 | 89 |
| 89 bool instant_extended_api_enabled_; | 90 bool instant_extended_api_enabled_; |
| 90 | 91 |
| 91 DISALLOW_COPY_AND_ASSIGN(LocationBarContainer); | 92 DISALLOW_COPY_AND_ASSIGN(LocationBarContainer); |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ | 95 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_CONTAINER_H_ |
| OLD | NEW |