| OLD | NEW |
| 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_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 public views::DragController, | 67 public views::DragController, |
| 68 public AutocompleteEditController, | 68 public AutocompleteEditController, |
| 69 public TemplateURLModelObserver { | 69 public TemplateURLModelObserver { |
| 70 public: | 70 public: |
| 71 // The location bar view's class name. | 71 // The location bar view's class name. |
| 72 static const char kViewClassName[]; | 72 static const char kViewClassName[]; |
| 73 | 73 |
| 74 class Delegate { | 74 class Delegate { |
| 75 public: | 75 public: |
| 76 // Should return the current tab contents. | 76 // Should return the current tab contents. |
| 77 virtual TabContentsWrapper* GetTabContentsWrapper() const = 0; | 77 virtual TabContentsWrapper* GetTabContentsWrapper() = 0; |
| 78 | 78 |
| 79 // Returns the InstantController, or NULL if there isn't one. | 79 // Returns the InstantController, or NULL if there isn't one. |
| 80 virtual InstantController* GetInstant() = 0; | 80 virtual InstantController* GetInstant() = 0; |
| 81 | 81 |
| 82 // Called by the location bar view when the user starts typing in the edit. | 82 // Called by the location bar view when the user starts typing in the edit. |
| 83 // This forces our security style to be UNKNOWN for the duration of the | 83 // This forces our security style to be UNKNOWN for the duration of the |
| 84 // editing. | 84 // editing. |
| 85 virtual void OnInputInProgress(bool in_progress) = 0; | 85 virtual void OnInputInProgress(bool in_progress) = 0; |
| 86 }; | 86 }; |
| 87 | 87 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 PageTransition::Type transition, | 198 PageTransition::Type transition, |
| 199 const GURL& alternate_nav_url) OVERRIDE; | 199 const GURL& alternate_nav_url) OVERRIDE; |
| 200 virtual void OnChanged() OVERRIDE; | 200 virtual void OnChanged() OVERRIDE; |
| 201 virtual void OnSelectionBoundsChanged() OVERRIDE; | 201 virtual void OnSelectionBoundsChanged() OVERRIDE; |
| 202 virtual void OnInputInProgress(bool in_progress) OVERRIDE; | 202 virtual void OnInputInProgress(bool in_progress) OVERRIDE; |
| 203 virtual void OnKillFocus() OVERRIDE; | 203 virtual void OnKillFocus() OVERRIDE; |
| 204 virtual void OnSetFocus() OVERRIDE; | 204 virtual void OnSetFocus() OVERRIDE; |
| 205 virtual SkBitmap GetFavicon() const OVERRIDE; | 205 virtual SkBitmap GetFavicon() const OVERRIDE; |
| 206 virtual string16 GetTitle() const OVERRIDE; | 206 virtual string16 GetTitle() const OVERRIDE; |
| 207 virtual InstantController* GetInstant() OVERRIDE; | 207 virtual InstantController* GetInstant() OVERRIDE; |
| 208 virtual TabContentsWrapper* GetTabContentsWrapper() const OVERRIDE; | 208 virtual TabContentsWrapper* GetTabContentsWrapper() OVERRIDE; |
| 209 | 209 |
| 210 // Overridden from views::View: | 210 // Overridden from views::View: |
| 211 virtual std::string GetClassName() const OVERRIDE; | 211 virtual std::string GetClassName() const OVERRIDE; |
| 212 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& event) | 212 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& event) |
| 213 OVERRIDE; | 213 OVERRIDE; |
| 214 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 214 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 215 | 215 |
| 216 // Overridden from views::DragController: | 216 // Overridden from views::DragController: |
| 217 virtual void WriteDragDataForView(View* sender, | 217 virtual void WriteDragDataForView(View* sender, |
| 218 const gfx::Point& press_pt, | 218 const gfx::Point& press_pt, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 400 |
| 401 // This is in case we're destroyed before the model loads. We store the model | 401 // This is in case we're destroyed before the model loads. We store the model |
| 402 // because calling profile_->GetTemplateURLModel() in the destructor causes a | 402 // because calling profile_->GetTemplateURLModel() in the destructor causes a |
| 403 // crash. | 403 // crash. |
| 404 TemplateURLModel* template_url_model_; | 404 TemplateURLModel* template_url_model_; |
| 405 | 405 |
| 406 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 406 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 407 }; | 407 }; |
| 408 | 408 |
| 409 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 409 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |