| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // Overridden from views::View: | 112 // Overridden from views::View: |
| 113 virtual bool OverrideAccelerator(const views::Accelerator& accelerator); | 113 virtual bool OverrideAccelerator(const views::Accelerator& accelerator); |
| 114 | 114 |
| 115 // Overridden from LocationBar: | 115 // Overridden from LocationBar: |
| 116 virtual void ShowFirstRunBubble(); | 116 virtual void ShowFirstRunBubble(); |
| 117 virtual std::wstring GetInputString() const; | 117 virtual std::wstring GetInputString() const; |
| 118 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 118 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
| 119 virtual PageTransition::Type GetPageTransition() const; | 119 virtual PageTransition::Type GetPageTransition() const; |
| 120 virtual void AcceptInput(); | 120 virtual void AcceptInput(); |
| 121 virtual void AcceptInputWithDisposition(WindowOpenDisposition); |
| 121 virtual void FocusLocation(); | 122 virtual void FocusLocation(); |
| 122 virtual void FocusSearch(); | 123 virtual void FocusSearch(); |
| 123 virtual void UpdateFeedIcon(); | 124 virtual void UpdateFeedIcon(); |
| 124 virtual void SaveStateToContents(TabContents* contents); | 125 virtual void SaveStateToContents(TabContents* contents); |
| 125 | 126 |
| 126 static const int kVertMargin; | 127 static const int kVertMargin; |
| 127 static const COLORREF kBackgroundColorByLevel[]; | 128 static const COLORREF kBackgroundColorByLevel[]; |
| 128 | 129 |
| 129 protected: | 130 protected: |
| 130 void Focus(); | 131 void Focus(); |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 442 |
| 442 // When true, the location bar view is read only and also is has a slightly | 443 // When true, the location bar view is read only and also is has a slightly |
| 443 // different presentation (font size / color). This is used for popups. | 444 // different presentation (font size / color). This is used for popups. |
| 444 bool popup_window_mode_; | 445 bool popup_window_mode_; |
| 445 | 446 |
| 446 // Used schedule a task for the first run info bubble. | 447 // Used schedule a task for the first run info bubble. |
| 447 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; | 448 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; |
| 448 }; | 449 }; |
| 449 | 450 |
| 450 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ | 451 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H__ |
| OLD | NEW |