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_GTK_LOCATION_BAR_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 public: | 150 public: |
151 ContentSettingImageViewGtk(ContentSettingsType content_type, | 151 ContentSettingImageViewGtk(ContentSettingsType content_type, |
152 const LocationBarViewGtk* parent, | 152 const LocationBarViewGtk* parent, |
153 Profile* profile); | 153 Profile* profile); |
154 virtual ~ContentSettingImageViewGtk(); | 154 virtual ~ContentSettingImageViewGtk(); |
155 | 155 |
156 GtkWidget* widget() { return alignment_.get(); } | 156 GtkWidget* widget() { return alignment_.get(); } |
157 | 157 |
158 void set_profile(Profile* profile) { profile_ = profile; } | 158 void set_profile(Profile* profile) { profile_ = profile; } |
159 | 159 |
160 bool IsVisible() { return GTK_WIDGET_VISIBLE(widget()); } | 160 bool IsVisible(); |
161 void UpdateFromTabContents(TabContents* tab_contents); | 161 void UpdateFromTabContents(TabContents* tab_contents); |
162 | 162 |
163 // Overridden from ui::AnimationDelegate: | 163 // Overridden from ui::AnimationDelegate: |
164 virtual void AnimationProgressed(const ui::Animation* animation); | 164 virtual void AnimationProgressed(const ui::Animation* animation); |
165 virtual void AnimationEnded(const ui::Animation* animation); | 165 virtual void AnimationEnded(const ui::Animation* animation); |
166 virtual void AnimationCanceled(const ui::Animation* animation); | 166 virtual void AnimationCanceled(const ui::Animation* animation); |
167 | 167 |
168 private: | 168 private: |
169 // Start the process of showing the label. | 169 // Start the process of showing the label. |
170 void StartAnimating(); | 170 void StartAnimating(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 virtual ~PageActionViewGtk(); | 221 virtual ~PageActionViewGtk(); |
222 | 222 |
223 GtkWidget* widget() { return event_box_.get(); } | 223 GtkWidget* widget() { return event_box_.get(); } |
224 | 224 |
225 ExtensionAction* page_action() { return page_action_; } | 225 ExtensionAction* page_action() { return page_action_; } |
226 | 226 |
227 void set_preview_enabled(bool preview_enabled) { | 227 void set_preview_enabled(bool preview_enabled) { |
228 preview_enabled_ = preview_enabled; | 228 preview_enabled_ = preview_enabled; |
229 } | 229 } |
230 | 230 |
231 bool IsVisible() { return GTK_WIDGET_VISIBLE(widget()); } | 231 bool IsVisible(); |
232 | 232 |
233 // Called to notify the PageAction that it should determine whether to be | 233 // Called to notify the PageAction that it should determine whether to be |
234 // visible or hidden. |contents| is the TabContents that is active, |url| | 234 // visible or hidden. |contents| is the TabContents that is active, |url| |
235 // is the current page URL. | 235 // is the current page URL. |
236 void UpdateVisibility(TabContents* contents, const GURL& url); | 236 void UpdateVisibility(TabContents* contents, const GURL& url); |
237 | 237 |
238 // A callback from ImageLoadingTracker for when the image has loaded. | 238 // A callback from ImageLoadingTracker for when the image has loaded. |
239 virtual void OnImageLoaded( | 239 virtual void OnImageLoaded( |
240 SkBitmap* image, const ExtensionResource& resource, int index); | 240 SkBitmap* image, const ExtensionResource& resource, int index); |
241 | 241 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 // The last search keyword that was shown via the |tab_to_search_box_|. | 454 // The last search keyword that was shown via the |tab_to_search_box_|. |
455 string16 last_keyword_; | 455 string16 last_keyword_; |
456 | 456 |
457 // Used to change the visibility of the star decoration. | 457 // Used to change the visibility of the star decoration. |
458 BooleanPrefMember edit_bookmarks_enabled_; | 458 BooleanPrefMember edit_bookmarks_enabled_; |
459 | 459 |
460 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 460 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
461 }; | 461 }; |
462 | 462 |
463 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ | 463 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ |
OLD | NEW |