| OLD | NEW |
| 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 29 matching lines...) Expand all Loading... |
| 40 class GURL; | 40 class GURL; |
| 41 class InstantController; | 41 class InstantController; |
| 42 class KeywordHintView; | 42 class KeywordHintView; |
| 43 class LocationIconView; | 43 class LocationIconView; |
| 44 class OpenPDFInReaderView; | 44 class OpenPDFInReaderView; |
| 45 class PageActionWithBadgeView; | 45 class PageActionWithBadgeView; |
| 46 class PageActionImageView; | 46 class PageActionImageView; |
| 47 class Profile; | 47 class Profile; |
| 48 class SelectedKeywordView; | 48 class SelectedKeywordView; |
| 49 class StarView; | 49 class StarView; |
| 50 class TabContents; | |
| 51 class TemplateURLService; | 50 class TemplateURLService; |
| 52 class WebIntentsButtonView; | 51 class WebIntentsButtonView; |
| 53 class ZoomView; | 52 class ZoomView; |
| 54 | 53 |
| 55 namespace chrome { | 54 namespace chrome { |
| 56 namespace search { | 55 namespace search { |
| 57 class SearchModel; | 56 class SearchModel; |
| 58 } | 57 } |
| 59 } | 58 } |
| 60 | 59 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 91 |
| 93 // chrome::search::SearchModelObserver: | 92 // chrome::search::SearchModelObserver: |
| 94 virtual void ModeChanged(const chrome::search::Mode& old_mode, | 93 virtual void ModeChanged(const chrome::search::Mode& old_mode, |
| 95 const chrome::search::Mode& new_mode) OVERRIDE; | 94 const chrome::search::Mode& new_mode) OVERRIDE; |
| 96 | 95 |
| 97 // Returns the offset used while animating. | 96 // Returns the offset used while animating. |
| 98 int animation_offset() const { return animation_offset_; } | 97 int animation_offset() const { return animation_offset_; } |
| 99 | 98 |
| 100 class Delegate { | 99 class Delegate { |
| 101 public: | 100 public: |
| 102 // Should return the current tab contents. | 101 // Should return the current web contents. |
| 103 virtual TabContents* GetTabContents() const = 0; | 102 virtual content::WebContents* GetWebContents() const = 0; |
| 104 | 103 |
| 105 // Returns the InstantController, or NULL if there isn't one. | 104 // Returns the InstantController, or NULL if there isn't one. |
| 106 virtual InstantController* GetInstant() = 0; | 105 virtual InstantController* GetInstant() = 0; |
| 107 | 106 |
| 108 // Creates Widget for the given delegate. | 107 // Creates Widget for the given delegate. |
| 109 virtual views::Widget* CreateViewsBubble( | 108 virtual views::Widget* CreateViewsBubble( |
| 110 views::BubbleDelegateView* bubble_delegate) = 0; | 109 views::BubbleDelegateView* bubble_delegate) = 0; |
| 111 | 110 |
| 112 // Creates PageActionImageView. Caller gets an ownership. | 111 // Creates PageActionImageView. Caller gets an ownership. |
| 113 virtual PageActionImageView* CreatePageActionImageView( | 112 virtual PageActionImageView* CreatePageActionImageView( |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 content::PageTransition transition, | 274 content::PageTransition transition, |
| 276 const GURL& alternate_nav_url) OVERRIDE; | 275 const GURL& alternate_nav_url) OVERRIDE; |
| 277 virtual void OnChanged() OVERRIDE; | 276 virtual void OnChanged() OVERRIDE; |
| 278 virtual void OnSelectionBoundsChanged() OVERRIDE; | 277 virtual void OnSelectionBoundsChanged() OVERRIDE; |
| 279 virtual void OnInputInProgress(bool in_progress) OVERRIDE; | 278 virtual void OnInputInProgress(bool in_progress) OVERRIDE; |
| 280 virtual void OnKillFocus() OVERRIDE; | 279 virtual void OnKillFocus() OVERRIDE; |
| 281 virtual void OnSetFocus() OVERRIDE; | 280 virtual void OnSetFocus() OVERRIDE; |
| 282 virtual gfx::Image GetFavicon() const OVERRIDE; | 281 virtual gfx::Image GetFavicon() const OVERRIDE; |
| 283 virtual string16 GetTitle() const OVERRIDE; | 282 virtual string16 GetTitle() const OVERRIDE; |
| 284 virtual InstantController* GetInstant() OVERRIDE; | 283 virtual InstantController* GetInstant() OVERRIDE; |
| 285 virtual TabContents* GetTabContents() const OVERRIDE; | 284 virtual content::WebContents* GetWebContents() const OVERRIDE; |
| 286 | 285 |
| 287 // Overridden from views::View: | 286 // Overridden from views::View: |
| 288 virtual std::string GetClassName() const OVERRIDE; | 287 virtual std::string GetClassName() const OVERRIDE; |
| 289 virtual bool SkipDefaultKeyEventProcessing( | 288 virtual bool SkipDefaultKeyEventProcessing( |
| 290 const ui::KeyEvent& event) OVERRIDE; | 289 const ui::KeyEvent& event) OVERRIDE; |
| 291 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 290 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 292 virtual bool HasFocus() const OVERRIDE; | 291 virtual bool HasFocus() const OVERRIDE; |
| 293 | 292 |
| 294 // Overridden from views::DragController: | 293 // Overridden from views::DragController: |
| 295 virtual void WriteDragDataForView(View* sender, | 294 virtual void WriteDragDataForView(View* sender, |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 | 570 |
| 572 #if defined(USE_AURA) | 571 #if defined(USE_AURA) |
| 573 // Observer for a fade-in animation. | 572 // Observer for a fade-in animation. |
| 574 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; | 573 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; |
| 575 #endif | 574 #endif |
| 576 | 575 |
| 577 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 576 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 578 }; | 577 }; |
| 579 | 578 |
| 580 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 579 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |