| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual int GetMinimumWidth() override; | 96 virtual int GetMinimumWidth() override; |
| 97 virtual gfx::NativeView container_view() override; | 97 virtual gfx::NativeView container_view() override; |
| 98 virtual const gfx::Rect& popup_bounds() const override; | 98 virtual const gfx::Rect& popup_bounds() const override; |
| 99 virtual const gfx::RectF& element_bounds() const override; | 99 virtual const gfx::RectF& element_bounds() const override; |
| 100 virtual bool IsRTL() const override; | 100 virtual bool IsRTL() const override; |
| 101 virtual bool display_password() const override; | 101 virtual bool display_password() const override; |
| 102 virtual bool password_selected() const override; | 102 virtual bool password_selected() const override; |
| 103 virtual base::string16 password() const override; | 103 virtual base::string16 password() const override; |
| 104 virtual base::string16 SuggestedText() override; | 104 virtual base::string16 SuggestedText() override; |
| 105 virtual const base::string16& HelpText() override; | 105 virtual const base::string16& HelpText() override; |
| 106 virtual base::string16 AccessibilityName() override; |
| 106 virtual const gfx::Range& HelpTextLinkRange() override; | 107 virtual const gfx::Range& HelpTextLinkRange() override; |
| 107 | 108 |
| 108 base::WeakPtr<PasswordGenerationPopupControllerImpl> GetWeakPtr(); | 109 base::WeakPtr<PasswordGenerationPopupControllerImpl> GetWeakPtr(); |
| 109 | 110 |
| 110 bool HandleKeyPressEvent(const content::NativeWebKeyboardEvent& event); | 111 bool HandleKeyPressEvent(const content::NativeWebKeyboardEvent& event); |
| 111 | 112 |
| 112 // Set if the password is currently selected. | 113 // Set if the password is currently selected. |
| 113 void PasswordSelected(bool selected); | 114 void PasswordSelected(bool selected); |
| 114 | 115 |
| 115 // Accept password if it's selected. | 116 // Accept password if it's selected. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 146 gfx::Rect popup_bounds_; | 147 gfx::Rect popup_bounds_; |
| 147 | 148 |
| 148 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; | 149 base::WeakPtrFactory<PasswordGenerationPopupControllerImpl> weak_ptr_factory_; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); | 151 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationPopupControllerImpl); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace autofill | 154 } // namespace autofill |
| 154 | 155 |
| 155 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ | 156 #endif // CHROME_BROWSER_UI_AUTOFILL_PASSWORD_GENERATION_POPUP_CONTROLLER_IMPL_
H_ |
| OLD | NEW |