| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PASSWORD_GENERATION_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "components/autofill/core/common/password_form.h" | 9 #include "components/autofill/core/common/password_form.h" |
| 10 #include "components/autofill/core/common/password_generation_util.h" | 10 #include "components/autofill/core/common/password_generation_util.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 const autofill::PasswordForm& form, | 44 const autofill::PasswordForm& form, |
| 45 const gfx::Rect& anchor_rect, | 45 const gfx::Rect& anchor_rect, |
| 46 views::View* anchor_view, | 46 views::View* anchor_view, |
| 47 content::RenderViewHost* render_view_host, | 47 content::RenderViewHost* render_view_host, |
| 48 password_manager::PasswordManager* password_manager, | 48 password_manager::PasswordManager* password_manager, |
| 49 autofill::PasswordGenerator* password_generator, | 49 autofill::PasswordGenerator* password_generator, |
| 50 ui::ThemeProvider* theme_provider); | 50 ui::ThemeProvider* theme_provider); |
| 51 virtual ~PasswordGenerationBubbleView(); | 51 virtual ~PasswordGenerationBubbleView(); |
| 52 | 52 |
| 53 // views::View | 53 // views::View |
| 54 virtual gfx::Size GetPreferredSize() OVERRIDE; | 54 virtual gfx::Size GetPreferredSize() const OVERRIDE; |
| 55 virtual void Layout() OVERRIDE; | 55 virtual void Layout() OVERRIDE; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 // views::BubbleDelegateView | 58 // views::BubbleDelegateView |
| 59 virtual void Init() OVERRIDE; | 59 virtual void Init() OVERRIDE; |
| 60 virtual gfx::Rect GetAnchorRect() OVERRIDE; | 60 virtual gfx::Rect GetAnchorRect() const OVERRIDE; |
| 61 virtual void WindowClosing() OVERRIDE; | 61 virtual void WindowClosing() OVERRIDE; |
| 62 | 62 |
| 63 // views::ButtonListener | 63 // views::ButtonListener |
| 64 virtual void ButtonPressed(views::Button* sender, | 64 virtual void ButtonPressed(views::Button* sender, |
| 65 const ui::Event& event) OVERRIDE; | 65 const ui::Event& event) OVERRIDE; |
| 66 | 66 |
| 67 // views::TextfieldController | 67 // views::TextfieldController |
| 68 virtual void ContentsChanged(views::Textfield* sender, | 68 virtual void ContentsChanged(views::Textfield* sender, |
| 69 const base::string16& new_contents) OVERRIDE; | 69 const base::string16& new_contents) OVERRIDE; |
| 70 virtual bool HandleKeyEvent(views::Textfield* sender, | 70 virtual bool HandleKeyEvent(views::Textfield* sender, |
| (...skipping 27 matching lines...) Expand all Loading... |
| 98 // Theme provider used to draw the regenerate button. | 98 // Theme provider used to draw the regenerate button. |
| 99 ui::ThemeProvider* theme_provider_; | 99 ui::ThemeProvider* theme_provider_; |
| 100 | 100 |
| 101 // Store stats on the users actions for logging. | 101 // Store stats on the users actions for logging. |
| 102 autofill::password_generation::PasswordGenerationActions actions_; | 102 autofill::password_generation::PasswordGenerationActions actions_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationBubbleView); | 104 DISALLOW_COPY_AND_ASSIGN(PasswordGenerationBubbleView); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_ | 107 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORD_GENERATION_BUBBLE_VIEW_H_ |
| OLD | NEW |