Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: chrome/browser/ui/views/password_generation_bubble_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_view.cc ('k') | chrome/browser/ui/views/password_generation_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698