OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CONTENT_SETTINGS_CONTENT_SETTING_IMAGE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_IMAGE_MODEL_H_ |
6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_IMAGE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_IMAGE_MODEL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 protected: | 116 protected: |
117 ContentSettingsType content_type() { return content_type_; } | 117 ContentSettingsType content_type() { return content_type_; } |
118 | 118 |
119 private: | 119 private: |
120 ContentSettingsType content_type_; | 120 ContentSettingsType content_type_; |
121 | 121 |
122 DISALLOW_COPY_AND_ASSIGN(ContentSettingSimpleImageModel); | 122 DISALLOW_COPY_AND_ASSIGN(ContentSettingSimpleImageModel); |
123 }; | 123 }; |
124 | 124 |
| 125 // Image model for subresource filter icons in the location bar. |
| 126 class ContentSettingSubresourceFilterImageModel |
| 127 : public ContentSettingImageModel { |
| 128 public: |
| 129 ContentSettingSubresourceFilterImageModel(); |
| 130 |
| 131 void UpdateFromWebContents(content::WebContents* web_contents) override; |
| 132 |
| 133 ContentSettingBubbleModel* CreateBubbleModel( |
| 134 ContentSettingBubbleModel::Delegate* delegate, |
| 135 content::WebContents* web_contents, |
| 136 Profile* profile) override; |
| 137 |
| 138 bool ShouldRunAnimation(content::WebContents* web_contents) override; |
| 139 void SetAnimationHasRun(content::WebContents* web_contents) override; |
| 140 |
| 141 private: |
| 142 DISALLOW_COPY_AND_ASSIGN(ContentSettingSubresourceFilterImageModel); |
| 143 }; |
| 144 |
125 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_IMAGE_MODEL_H_ | 145 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_IMAGE_MODEL_H_ |
OLD | NEW |