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

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

Issue 869453002: Define class names for views class in c/b/ui/views (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 11 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
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_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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "components/content_settings/core/common/content_settings_types.h" 9 #include "components/content_settings/core/common/content_settings_types.h"
10 #include "ui/gfx/animation/animation_delegate.h" 10 #include "ui/gfx/animation/animation_delegate.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 static int GetBubbleOuterPadding(bool by_icon); 63 static int GetBubbleOuterPadding(bool by_icon);
64 64
65 // gfx::AnimationDelegate: 65 // gfx::AnimationDelegate:
66 void AnimationEnded(const gfx::Animation* animation) override; 66 void AnimationEnded(const gfx::Animation* animation) override;
67 void AnimationProgressed(const gfx::Animation* animation) override; 67 void AnimationProgressed(const gfx::Animation* animation) override;
68 void AnimationCanceled(const gfx::Animation* animation) override; 68 void AnimationCanceled(const gfx::Animation* animation) override;
69 69
70 // views::View: 70 // views::View:
71 gfx::Size GetPreferredSize() const override; 71 gfx::Size GetPreferredSize() const override;
72 void Layout() override; 72 void Layout() override;
73 const char* GetClassName() const override;
73 bool OnMousePressed(const ui::MouseEvent& event) override; 74 bool OnMousePressed(const ui::MouseEvent& event) override;
74 void OnMouseReleased(const ui::MouseEvent& event) override; 75 void OnMouseReleased(const ui::MouseEvent& event) override;
75 void OnGestureEvent(ui::GestureEvent* event) override; 76 void OnGestureEvent(ui::GestureEvent* event) override;
76 void OnPaintBackground(gfx::Canvas* canvas) override; 77 void OnPaintBackground(gfx::Canvas* canvas) override;
77 78
78 // views::WidgetObserver: 79 // views::WidgetObserver:
79 void OnWidgetDestroying(views::Widget* widget) override; 80 void OnWidgetDestroying(views::Widget* widget) override;
80 81
81 bool background_showing() const { 82 bool background_showing() const {
82 return slide_animator_.is_animating() || pause_animation_; 83 return slide_animator_.is_animating() || pause_animation_;
83 } 84 }
84 85
85 int GetTotalSpacingWhileAnimating() const; 86 int GetTotalSpacingWhileAnimating() const;
86 void OnClick(); 87 void OnClick();
87 88
88 LocationBarView* parent_; // Weak, owns us. 89 LocationBarView* parent_; // Weak, owns us.
89 scoped_ptr<ContentSettingImageModel> content_setting_image_model_; 90 scoped_ptr<ContentSettingImageModel> content_setting_image_model_;
90 scoped_ptr<views::Painter> background_painter_; 91 scoped_ptr<views::Painter> background_painter_;
91 views::ImageView* icon_; 92 views::ImageView* icon_;
92 views::Label* text_label_; 93 views::Label* text_label_;
93 gfx::SlideAnimation slide_animator_; 94 gfx::SlideAnimation slide_animator_;
94 bool pause_animation_; 95 bool pause_animation_;
95 double pause_animation_state_; 96 double pause_animation_state_;
96 views::Widget* bubble_widget_; 97 views::Widget* bubble_widget_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); 99 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView);
99 }; 100 };
100 101
101 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ 102 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_view.cc ('k') | chrome/browser/ui/views/location_bar/content_setting_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698