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

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

Issue 11416042: views: Change the LocationBarView delegate's API to GetWebContents(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed Created 8 years, 1 month 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // chrome::search::SearchModelObserver: 93 // chrome::search::SearchModelObserver:
94 virtual void ModeChanged(const chrome::search::Mode& old_mode, 94 virtual void ModeChanged(const chrome::search::Mode& old_mode,
95 const chrome::search::Mode& new_mode) OVERRIDE; 95 const chrome::search::Mode& new_mode) OVERRIDE;
96 96
97 // Returns the offset used while animating. 97 // Returns the offset used while animating.
98 int animation_offset() const { return animation_offset_; } 98 int animation_offset() const { return animation_offset_; }
99 99
100 class Delegate { 100 class Delegate {
101 public: 101 public:
102 // Should return the current tab contents. 102 // Should return the current tab contents.
103 virtual TabContents* GetTabContents() const = 0; 103 virtual content::WebContents* GetWebContents() const = 0;
104 104
105 // Returns the InstantController, or NULL if there isn't one. 105 // Returns the InstantController, or NULL if there isn't one.
106 virtual InstantController* GetInstant() = 0; 106 virtual InstantController* GetInstant() = 0;
107 107
108 // Creates Widget for the given delegate. 108 // Creates Widget for the given delegate.
109 virtual views::Widget* CreateViewsBubble( 109 virtual views::Widget* CreateViewsBubble(
110 views::BubbleDelegateView* bubble_delegate) = 0; 110 views::BubbleDelegateView* bubble_delegate) = 0;
111 111
112 // Creates PageActionImageView. Caller gets an ownership. 112 // Creates PageActionImageView. Caller gets an ownership.
113 virtual PageActionImageView* CreatePageActionImageView( 113 virtual PageActionImageView* CreatePageActionImageView(
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 571
572 #if defined(USE_AURA) 572 #if defined(USE_AURA)
573 // Observer for a fade-in animation. 573 // Observer for a fade-in animation.
574 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; 574 scoped_ptr<FadeAnimationObserver> fade_animation_observer_;
575 #endif 575 #endif
576 576
577 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 577 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
578 }; 578 };
579 579
580 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 580 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698