| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_LOCATION_BAR_VIEW_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ |
| 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ | 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 virtual void ShowFirstRunBubble(); | 118 virtual void ShowFirstRunBubble(); |
| 119 virtual std::wstring GetInputString() const; | 119 virtual std::wstring GetInputString() const; |
| 120 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 120 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
| 121 virtual PageTransition::Type GetPageTransition() const; | 121 virtual PageTransition::Type GetPageTransition() const; |
| 122 virtual void AcceptInput(); | 122 virtual void AcceptInput(); |
| 123 virtual void AcceptInputWithDisposition(WindowOpenDisposition); | 123 virtual void AcceptInputWithDisposition(WindowOpenDisposition); |
| 124 virtual void FocusLocation(); | 124 virtual void FocusLocation(); |
| 125 virtual void FocusSearch(); | 125 virtual void FocusSearch(); |
| 126 virtual void UpdateFeedIcon(); | 126 virtual void UpdateFeedIcon(); |
| 127 virtual void SaveStateToContents(TabContents* contents); | 127 virtual void SaveStateToContents(TabContents* contents); |
| 128 virtual void Revert(); |
| 128 | 129 |
| 129 static const int kVertMargin; | 130 static const int kVertMargin; |
| 130 static const COLORREF kBackgroundColorByLevel[]; | 131 static const COLORREF kBackgroundColorByLevel[]; |
| 131 | 132 |
| 132 protected: | 133 protected: |
| 133 void Focus(); | 134 void Focus(); |
| 134 | 135 |
| 135 // Overridden from Chrome::View. | 136 // Overridden from Chrome::View. |
| 136 virtual bool ShouldLookupAccelerators(const views::KeyEvent& e); | 137 virtual bool ShouldLookupAccelerators(const views::KeyEvent& e); |
| 137 | 138 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 bool popup_window_mode_; | 448 bool popup_window_mode_; |
| 448 | 449 |
| 449 // Used schedule a task for the first run info bubble. | 450 // Used schedule a task for the first run info bubble. |
| 450 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; | 451 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; |
| 451 | 452 |
| 452 // The positioner that places the autocomplete popup. | 453 // The positioner that places the autocomplete popup. |
| 453 AutocompletePopupPositioner* popup_positioner_; | 454 AutocompletePopupPositioner* popup_positioner_; |
| 454 }; | 455 }; |
| 455 | 456 |
| 456 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ | 457 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ |
| OLD | NEW |