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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_container.h

Issue 10907038: alternate ntp: clip middle omnibox when resizing browser window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed scott's comments Created 8 years, 3 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/location_bar/location_bar_container.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) 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698