| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace content { | 23 namespace content { |
| 24 class WebContents; | 24 class WebContents; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class FontList; | 28 class FontList; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace views { | 31 namespace views { |
| 32 class BubbleDialogDelegateView; | 32 class BubbleDialogDelegateView; |
| 33 class ImageView; | |
| 34 class Label; | |
| 35 } | 33 } |
| 36 | 34 |
| 37 // The ContentSettingImageView displays an icon and optional text label for | 35 // The ContentSettingImageView displays an icon and optional text label for |
| 38 // various content settings affordances in the location bar (i.e. plugin | 36 // various content settings affordances in the location bar (i.e. plugin |
| 39 // blocking, geolocation). | 37 // blocking, geolocation). |
| 40 class ContentSettingImageView : public IconLabelBubbleView, | 38 class ContentSettingImageView : public IconLabelBubbleView, |
| 41 public gfx::AnimationDelegate, | 39 public gfx::AnimationDelegate, |
| 42 public views::WidgetObserver { | 40 public views::WidgetObserver { |
| 43 public: | 41 public: |
| 44 // ContentSettingImageView takes ownership of its |image_model|. | 42 // ContentSettingImageView takes ownership of its |image_model|. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 90 |
| 93 // This is used to check if the bubble was showing during the mouse pressed | 91 // This is used to check if the bubble was showing during the mouse pressed |
| 94 // event. If this is true then the mouse released event is ignored to prevent | 92 // event. If this is true then the mouse released event is ignored to prevent |
| 95 // the bubble from reshowing. | 93 // the bubble from reshowing. |
| 96 bool suppress_mouse_released_action_; | 94 bool suppress_mouse_released_action_; |
| 97 | 95 |
| 98 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); | 96 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); |
| 99 }; | 97 }; |
| 100 | 98 |
| 101 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ | 99 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
| OLD | NEW |