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_CONTENT_SETTING_IMAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 LocationBarView* parent); | 44 LocationBarView* parent); |
45 virtual ~ContentSettingImageView(); | 45 virtual ~ContentSettingImageView(); |
46 | 46 |
47 // |new_navigation| true if this is a new navigation, false if the tab was | 47 // |new_navigation| true if this is a new navigation, false if the tab was |
48 // just switched to. | 48 // just switched to. |
49 virtual void Update(TabContents* tab_contents); | 49 virtual void Update(TabContents* tab_contents); |
50 | 50 |
51 // views::View overrides: | 51 // views::View overrides: |
52 virtual gfx::Size GetPreferredSize() OVERRIDE; | 52 virtual gfx::Size GetPreferredSize() OVERRIDE; |
53 virtual ui::GestureStatus OnGestureEvent( | 53 virtual ui::GestureStatus OnGestureEvent( |
54 const views::GestureEvent& event) OVERRIDE; | 54 const ui::GestureEvent& event) OVERRIDE; |
55 | 55 |
56 // ui::AnimationDelegate overrides: | 56 // ui::AnimationDelegate overrides: |
57 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; | 57 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
58 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; | 58 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; |
59 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; | 59 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; |
60 | 60 |
61 // views::WidgetObserver override: | 61 // views::WidgetObserver override: |
62 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; | 62 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; |
63 | 63 |
64 // TouchableLocationBarView. | 64 // TouchableLocationBarView. |
(...skipping 26 matching lines...) Expand all Loading... |
91 string16 animated_text_; | 91 string16 animated_text_; |
92 bool pause_animation_; | 92 bool pause_animation_; |
93 int text_size_; | 93 int text_size_; |
94 int visible_text_size_; | 94 int visible_text_size_; |
95 gfx::Insets saved_insets_; | 95 gfx::Insets saved_insets_; |
96 | 96 |
97 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingImageView); | 97 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingImageView); |
98 }; | 98 }; |
99 | 99 |
100 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ | 100 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
OLD | NEW |