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

Side by Side Diff: chrome/browser/ui/gtk/location_bar_view_gtk.h

Issue 10834368: Convert mostly favicon related code from SkBitmap to ImageSkia and Image (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
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_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 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/ui/omnibox/location_bar.h" 24 #include "chrome/browser/ui/omnibox/location_bar.h"
25 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" 25 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
26 #include "chrome/browser/ui/view_ids.h" 26 #include "chrome/browser/ui/view_ids.h"
27 #include "chrome/browser/ui/zoom/zoom_controller.h" 27 #include "chrome/browser/ui/zoom/zoom_controller.h"
28 #include "chrome/common/content_settings_types.h" 28 #include "chrome/common/content_settings_types.h"
29 #include "chrome/common/extensions/extension_action.h" 29 #include "chrome/common/extensions/extension_action.h"
30 #include "content/public/browser/notification_observer.h" 30 #include "content/public/browser/notification_observer.h"
31 #include "content/public/browser/notification_registrar.h" 31 #include "content/public/browser/notification_registrar.h"
32 #include "content/public/common/page_transition_types.h" 32 #include "content/public/common/page_transition_types.h"
33 #include "googleurl/src/gurl.h" 33 #include "googleurl/src/gurl.h"
34 #include "third_party/skia/include/core/SkBitmap.h"
35 #include "ui/base/animation/animation_delegate.h" 34 #include "ui/base/animation/animation_delegate.h"
36 #include "ui/base/animation/slide_animation.h" 35 #include "ui/base/animation/slide_animation.h"
37 #include "ui/base/gtk/gtk_signal.h" 36 #include "ui/base/gtk/gtk_signal.h"
38 #include "ui/base/gtk/owned_widget_gtk.h" 37 #include "ui/base/gtk/owned_widget_gtk.h"
39 #include "webkit/glue/window_open_disposition.h" 38 #include "webkit/glue/window_open_disposition.h"
40 39
41 class ActionBoxButtonGtk; 40 class ActionBoxButtonGtk;
42 class Browser; 41 class Browser;
43 class CommandUpdater; 42 class CommandUpdater;
44 class ContentSettingImageModel; 43 class ContentSettingImageModel;
45 class ContentSettingBubbleGtk; 44 class ContentSettingBubbleGtk;
46 class ExtensionAction; 45 class ExtensionAction;
47 class GtkThemeService; 46 class GtkThemeService;
48 class OmniboxViewGtk; 47 class OmniboxViewGtk;
49 class SkBitmap;
50 class ToolbarModel; 48 class ToolbarModel;
51 49
52 namespace content { 50 namespace content {
53 class WebContents; 51 class WebContents;
54 } 52 }
55 53
54 namespace gfx {
55 class Image;
56 }
57
56 namespace ui { 58 namespace ui {
57 class AcceleratorGtk; 59 class AcceleratorGtk;
58 } 60 }
59 61
60 class LocationBarViewGtk : public OmniboxEditController, 62 class LocationBarViewGtk : public OmniboxEditController,
61 public LocationBar, 63 public LocationBar,
62 public LocationBarTesting, 64 public LocationBarTesting,
63 public content::NotificationObserver, 65 public content::NotificationObserver,
64 public CommandObserver { 66 public CommandObserver {
65 public: 67 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // OmniboxEditController: 122 // OmniboxEditController:
121 virtual void OnAutocompleteAccept(const GURL& url, 123 virtual void OnAutocompleteAccept(const GURL& url,
122 WindowOpenDisposition disposition, 124 WindowOpenDisposition disposition,
123 content::PageTransition transition, 125 content::PageTransition transition,
124 const GURL& alternate_nav_url) OVERRIDE; 126 const GURL& alternate_nav_url) OVERRIDE;
125 virtual void OnChanged() OVERRIDE; 127 virtual void OnChanged() OVERRIDE;
126 virtual void OnSelectionBoundsChanged() OVERRIDE; 128 virtual void OnSelectionBoundsChanged() OVERRIDE;
127 virtual void OnKillFocus() OVERRIDE; 129 virtual void OnKillFocus() OVERRIDE;
128 virtual void OnSetFocus() OVERRIDE; 130 virtual void OnSetFocus() OVERRIDE;
129 virtual void OnInputInProgress(bool in_progress) OVERRIDE; 131 virtual void OnInputInProgress(bool in_progress) OVERRIDE;
130 virtual SkBitmap GetFavicon() const OVERRIDE; 132 virtual gfx::Image GetFavicon() const OVERRIDE;
131 virtual string16 GetTitle() const OVERRIDE; 133 virtual string16 GetTitle() const OVERRIDE;
132 virtual InstantController* GetInstant() OVERRIDE; 134 virtual InstantController* GetInstant() OVERRIDE;
133 virtual TabContents* GetTabContents() const OVERRIDE; 135 virtual TabContents* GetTabContents() const OVERRIDE;
134 136
135 // LocationBar: 137 // LocationBar:
136 virtual void ShowFirstRunBubble() OVERRIDE; 138 virtual void ShowFirstRunBubble() OVERRIDE;
137 virtual void SetSuggestedText(const string16& text, 139 virtual void SetSuggestedText(const string16& text,
138 InstantCompleteBehavior behavior) OVERRIDE; 140 InstantCompleteBehavior behavior) OVERRIDE;
139 virtual string16 GetInputString() const OVERRIDE; 141 virtual string16 GetInputString() const OVERRIDE;
140 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE; 142 virtual WindowOpenDisposition GetWindowOpenDisposition() const OVERRIDE;
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 BooleanPrefMember edit_bookmarks_enabled_; 534 BooleanPrefMember edit_bookmarks_enabled_;
533 535
534 // Used to remember the URL and title text when drag&drop has begun. 536 // Used to remember the URL and title text when drag&drop has begun.
535 GURL drag_url_; 537 GURL drag_url_;
536 string16 drag_title_; 538 string16 drag_title_;
537 539
538 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 540 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
539 }; 541 };
540 542
541 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 543 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_titlebar.cc ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698