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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Provide styling colors for button look. | 68 // Provide styling colors for button look. |
69 virtual SkColor ButtonBorderColor() const; | 69 virtual SkColor ButtonBorderColor() const; |
70 virtual SkColor GradientTopColor() const; | 70 virtual SkColor GradientTopColor() const; |
71 virtual SkColor GradientBottomColor() const; | 71 virtual SkColor GradientBottomColor() const; |
72 | 72 |
73 // Invoked when the user clicks on the control. | 73 // Invoked when the user clicks on the control. |
74 virtual void OnClick(); | 74 virtual void OnClick(); |
75 | 75 |
76 private: | 76 private: |
77 // views::ImageView overrides: | 77 // views::ImageView overrides: |
78 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 78 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
79 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 79 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
80 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 80 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
81 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; | 81 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; |
82 | 82 |
83 scoped_ptr<ContentSettingImageModel> content_setting_image_model_; | 83 scoped_ptr<ContentSettingImageModel> content_setting_image_model_; |
84 | 84 |
85 views::Widget* bubble_widget_; | 85 views::Widget* bubble_widget_; |
86 | 86 |
87 // The owning LocationBarView. | 87 // The owning LocationBarView. |
88 LocationBarView* parent_; | 88 LocationBarView* parent_; |
89 | 89 |
90 scoped_ptr<ui::SlideAnimation> slide_animator_; | 90 scoped_ptr<ui::SlideAnimation> slide_animator_; |
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 |