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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 10533046: TabContentsWrapper -> TabContents, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compiling is good Created 8 years, 6 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_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class GURL; 42 class GURL;
43 class InstantController; 43 class InstantController;
44 class KeywordHintView; 44 class KeywordHintView;
45 class LocationIconView; 45 class LocationIconView;
46 class PageActionWithBadgeView; 46 class PageActionWithBadgeView;
47 class PageActionImageView; 47 class PageActionImageView;
48 class Profile; 48 class Profile;
49 class SelectedKeywordView; 49 class SelectedKeywordView;
50 class StarView; 50 class StarView;
51 class TabContents; 51 class TabContents;
52 typedef TabContents TabContentsWrapper;
53 class TemplateURLService; 52 class TemplateURLService;
54 53
55 namespace views { 54 namespace views {
56 class BubbleDelegateView; 55 class BubbleDelegateView;
57 class Widget; 56 class Widget;
58 } 57 }
59 58
60 #if defined(OS_WIN) || defined(USE_AURA) 59 #if defined(OS_WIN) || defined(USE_AURA)
61 class SuggestedTextView; 60 class SuggestedTextView;
62 #endif 61 #endif
(...skipping 21 matching lines...) Expand all
84 // DropdownBarHostDelegate 83 // DropdownBarHostDelegate
85 virtual void SetFocusAndSelection(bool select_all) OVERRIDE; 84 virtual void SetFocusAndSelection(bool select_all) OVERRIDE;
86 virtual void SetAnimationOffset(int offset) OVERRIDE; 85 virtual void SetAnimationOffset(int offset) OVERRIDE;
87 86
88 // Returns the offset used while animating. 87 // Returns the offset used while animating.
89 int animation_offset() const { return animation_offset_; } 88 int animation_offset() const { return animation_offset_; }
90 89
91 class Delegate { 90 class Delegate {
92 public: 91 public:
93 // Should return the current tab contents. 92 // Should return the current tab contents.
94 virtual TabContentsWrapper* GetTabContentsWrapper() const = 0; 93 virtual TabContents* GetTabContents() const = 0;
95 94
96 // Returns the InstantController, or NULL if there isn't one. 95 // Returns the InstantController, or NULL if there isn't one.
97 virtual InstantController* GetInstant() = 0; 96 virtual InstantController* GetInstant() = 0;
98 97
99 // Creates Widget for the given delegate. 98 // Creates Widget for the given delegate.
100 virtual views::Widget* CreateViewsBubble( 99 virtual views::Widget* CreateViewsBubble(
101 views::BubbleDelegateView* bubble_delegate) = 0; 100 views::BubbleDelegateView* bubble_delegate) = 0;
102 101
103 // Creates PageActionImageView. Caller gets an ownership. 102 // Creates PageActionImageView. Caller gets an ownership.
104 virtual PageActionImageView* CreatePageActionImageView( 103 virtual PageActionImageView* CreatePageActionImageView(
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 content::PageTransition transition, 255 content::PageTransition transition,
257 const GURL& alternate_nav_url) OVERRIDE; 256 const GURL& alternate_nav_url) OVERRIDE;
258 virtual void OnChanged() OVERRIDE; 257 virtual void OnChanged() OVERRIDE;
259 virtual void OnSelectionBoundsChanged() OVERRIDE; 258 virtual void OnSelectionBoundsChanged() OVERRIDE;
260 virtual void OnInputInProgress(bool in_progress) OVERRIDE; 259 virtual void OnInputInProgress(bool in_progress) OVERRIDE;
261 virtual void OnKillFocus() OVERRIDE; 260 virtual void OnKillFocus() OVERRIDE;
262 virtual void OnSetFocus() OVERRIDE; 261 virtual void OnSetFocus() OVERRIDE;
263 virtual SkBitmap GetFavicon() const OVERRIDE; 262 virtual SkBitmap GetFavicon() const OVERRIDE;
264 virtual string16 GetTitle() const OVERRIDE; 263 virtual string16 GetTitle() const OVERRIDE;
265 virtual InstantController* GetInstant() OVERRIDE; 264 virtual InstantController* GetInstant() OVERRIDE;
266 virtual TabContentsWrapper* GetTabContentsWrapper() const OVERRIDE; 265 virtual TabContents* GetTabContents() const OVERRIDE;
267 266
268 // Overridden from views::View: 267 // Overridden from views::View:
269 virtual std::string GetClassName() const OVERRIDE; 268 virtual std::string GetClassName() const OVERRIDE;
270 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& event) 269 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& event)
271 OVERRIDE; 270 OVERRIDE;
272 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 271 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
273 272
274 // Overridden from views::DragController: 273 // Overridden from views::DragController:
275 virtual void WriteDragDataForView(View* sender, 274 virtual void WriteDragDataForView(View* sender,
276 const gfx::Point& press_pt, 275 const gfx::Point& press_pt,
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 // in the right location. 491 // in the right location.
493 int animation_offset_; 492 int animation_offset_;
494 493
495 // Used to register for notifications received by NotificationObserver. 494 // Used to register for notifications received by NotificationObserver.
496 content::NotificationRegistrar registrar_; 495 content::NotificationRegistrar registrar_;
497 496
498 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 497 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
499 }; 498 };
500 499
501 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 500 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698