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

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

Issue 6735042: Move favicon from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 8 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) 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
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "chrome/browser/autocomplete/autocomplete_edit.h" 17 #include "chrome/browser/autocomplete/autocomplete_edit.h"
18 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" 18 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h"
19 #include "chrome/browser/extensions/extension_context_menu_model.h" 19 #include "chrome/browser/extensions/extension_context_menu_model.h"
20 #include "chrome/browser/extensions/image_loading_tracker.h" 20 #include "chrome/browser/extensions/image_loading_tracker.h"
21 #include "chrome/browser/favicon_tab_helper.h"
21 #include "chrome/browser/first_run/first_run.h" 22 #include "chrome/browser/first_run/first_run.h"
22 #include "chrome/browser/ui/gtk/info_bubble_gtk.h" 23 #include "chrome/browser/ui/gtk/info_bubble_gtk.h"
23 #include "chrome/browser/ui/gtk/menu_gtk.h" 24 #include "chrome/browser/ui/gtk/menu_gtk.h"
24 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" 25 #include "chrome/browser/ui/gtk/owned_widget_gtk.h"
25 #include "chrome/browser/ui/omnibox/location_bar.h" 26 #include "chrome/browser/ui/omnibox/location_bar.h"
27 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
26 #include "chrome/common/content_settings_types.h" 28 #include "chrome/common/content_settings_types.h"
27 #include "content/common/notification_observer.h" 29 #include "content/common/notification_observer.h"
28 #include "content/common/notification_registrar.h" 30 #include "content/common/notification_registrar.h"
29 #include "content/common/page_transition_types.h" 31 #include "content/common/page_transition_types.h"
30 #include "third_party/skia/include/core/SkBitmap.h" 32 #include "third_party/skia/include/core/SkBitmap.h"
31 #include "ui/base/animation/slide_animation.h" 33 #include "ui/base/animation/slide_animation.h"
32 #include "ui/base/gtk/gtk_signal.h" 34 #include "ui/base/gtk/gtk_signal.h"
33 #include "webkit/glue/window_open_disposition.h" 35 #include "webkit/glue/window_open_disposition.h"
34 36
35 class AutocompleteEditViewGtk; 37 class AutocompleteEditViewGtk;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 PageTransition::Type transition, 99 PageTransition::Type transition,
98 const GURL& alternate_nav_url) OVERRIDE; 100 const GURL& alternate_nav_url) OVERRIDE;
99 virtual void OnChanged() OVERRIDE; 101 virtual void OnChanged() OVERRIDE;
100 virtual void OnSelectionBoundsChanged() OVERRIDE; 102 virtual void OnSelectionBoundsChanged() OVERRIDE;
101 virtual void OnKillFocus() OVERRIDE; 103 virtual void OnKillFocus() OVERRIDE;
102 virtual void OnSetFocus() OVERRIDE; 104 virtual void OnSetFocus() OVERRIDE;
103 virtual void OnInputInProgress(bool in_progress) OVERRIDE; 105 virtual void OnInputInProgress(bool in_progress) OVERRIDE;
104 virtual SkBitmap GetFavicon() const OVERRIDE; 106 virtual SkBitmap GetFavicon() const OVERRIDE;
105 virtual string16 GetTitle() const OVERRIDE; 107 virtual string16 GetTitle() const OVERRIDE;
106 virtual InstantController* GetInstant() OVERRIDE; 108 virtual InstantController* GetInstant() OVERRIDE;
107 virtual TabContentsWrapper* GetTabContentsWrapper() OVERRIDE; 109 virtual TabContentsWrapper* GetTabContentsWrapper() const OVERRIDE;
108 110
109 // Implement the LocationBar interface. 111 // Implement the LocationBar interface.
110 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type); 112 virtual void ShowFirstRunBubble(FirstRun::BubbleType bubble_type);
111 virtual void SetSuggestedText(const string16& text, 113 virtual void SetSuggestedText(const string16& text,
112 InstantCompleteBehavior behavior); 114 InstantCompleteBehavior behavior);
113 virtual std::wstring GetInputString() const; 115 virtual std::wstring GetInputString() const;
114 virtual WindowOpenDisposition GetWindowOpenDisposition() const; 116 virtual WindowOpenDisposition GetWindowOpenDisposition() const;
115 virtual PageTransition::Type GetPageTransition() const; 117 virtual PageTransition::Type GetPageTransition() const;
116 virtual void AcceptInput(); 118 virtual void AcceptInput();
117 virtual void FocusLocation(bool select_all); 119 virtual void FocusLocation(bool select_all);
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 // Indicate if |tab_to_search_hint_| should be shown. 449 // Indicate if |tab_to_search_hint_| should be shown.
448 bool show_keyword_hint_; 450 bool show_keyword_hint_;
449 451
450 // The last search keyword that was shown via the |tab_to_search_box_|. 452 // The last search keyword that was shown via the |tab_to_search_box_|.
451 string16 last_keyword_; 453 string16 last_keyword_;
452 454
453 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 455 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
454 }; 456 };
455 457
456 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 458 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/hung_renderer_dialog_gtk.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