Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 WindowOpenDisposition disposition, | 105 WindowOpenDisposition disposition, |
| 106 PageTransition::Type transition, | 106 PageTransition::Type transition, |
| 107 const GURL& alternate_nav_url); | 107 const GURL& alternate_nav_url); |
| 108 virtual void OnChanged(); | 108 virtual void OnChanged(); |
| 109 virtual void OnInputInProgress(bool in_progress) { | 109 virtual void OnInputInProgress(bool in_progress) { |
| 110 delegate_->OnInputInProgress(in_progress); | 110 delegate_->OnInputInProgress(in_progress); |
| 111 } | 111 } |
| 112 virtual SkBitmap GetFavIcon() const; | 112 virtual SkBitmap GetFavIcon() const; |
| 113 virtual std::wstring GetTitle() const; | 113 virtual std::wstring GetTitle() const; |
| 114 | 114 |
| 115 // Returns the accessibility role. | |
| 116 bool GetAccessibleRole(AccessibilityTypes::Role* role); | |
| 117 | |
| 118 // Overridden from views::View: | 115 // Overridden from views::View: |
| 119 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e); | 116 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e); |
| 117 virtual bool GetAccessibleName(std::wstring* name); | |
| 118 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | |
| 119 virtual void SetAccessibleName(const std::wstring& name); | |
| 120 | 120 |
| 121 // Overridden from LocationBar: | 121 // Overridden from LocationBar: |
| 122 virtual void ShowFirstRunBubble(bool use_OEM_bubble); | 122 virtual void ShowFirstRunBubble(bool use_OEM_bubble); |
| 123 virtual std::wstring GetInputString() const; | 123 virtual std::wstring GetInputString() const; |
| 124 virtual WindowOpenDisposition GetWindowOpenDisposition() const; | 124 virtual WindowOpenDisposition GetWindowOpenDisposition() const; |
| 125 virtual PageTransition::Type GetPageTransition() const; | 125 virtual PageTransition::Type GetPageTransition() const; |
| 126 virtual void AcceptInput(); | 126 virtual void AcceptInput(); |
| 127 virtual void AcceptInputWithDisposition(WindowOpenDisposition); | 127 virtual void AcceptInputWithDisposition(WindowOpenDisposition); |
| 128 virtual void FocusLocation(); | 128 virtual void FocusLocation(); |
| 129 virtual void FocusSearch(); | 129 virtual void FocusSearch(); |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 503 | 503 |
| 504 // When true, the location bar view is read only and also is has a slightly | 504 // When true, the location bar view is read only and also is has a slightly |
| 505 // different presentation (font size / color). This is used for popups. | 505 // different presentation (font size / color). This is used for popups. |
| 506 bool popup_window_mode_; | 506 bool popup_window_mode_; |
| 507 | 507 |
| 508 // Used schedule a task for the first run info bubble. | 508 // Used schedule a task for the first run info bubble. |
| 509 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; | 509 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; |
| 510 | 510 |
| 511 // The positioner that places the autocomplete popup. | 511 // The positioner that places the autocomplete popup. |
| 512 AutocompletePopupPositioner* popup_positioner_; | 512 AutocompletePopupPositioner* popup_positioner_; |
| 513 | |
| 514 // Storage of string needed for accessibility. | |
| 515 std::wstring accessible_name_; | |
| 513 }; | 516 }; |
|
sky
2009/08/21 21:33:39
Can you add DISALLOW_COPY_AND_ASSIGN while you're
| |
| 514 | 517 |
| 515 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ | 518 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |