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

Side by Side Diff: chrome/browser/views/options/passwords_exceptions_window_view.h

Issue 67055: Use tab to group "Show saved passwords" and "Exceptions"... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_VIEWS_OPTIONS_PASSWORDS_EXCEPTIONS_WINDOW_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_OPTIONS_PASSWORDS_EXCEPTIONS_WINDOW_VIEW_H_
7
8 #include "chrome/views/controls/tabbed_pane.h"
9 #include "chrome/views/view.h"
10 #include "chrome/views/window/dialog_delegate.h"
11 #include "chrome/views/window/window.h"
12
13 class Profile;
14 class PasswordsPageView;
15 class ExceptionsPageView;
16
17 ///////////////////////////////////////////////////////////////////////////////
18 // PasswordsExceptionsWindowView
19 //
20 // The contents of the "Save passwords and exceptions" dialog window.
21 //
22 class PasswordsExceptionsWindowView : public views::View,
23 public views::DialogDelegate {
24 public:
25 explicit PasswordsExceptionsWindowView(Profile* profile);
26 virtual ~PasswordsExceptionsWindowView() {}
27
28 // Show the PasswordManagerExceptionsView for the given profile.
29 static void Show(Profile* profile);
30
31 // views::View methods.
32 virtual void Layout();
33 virtual gfx::Size GetPreferredSize();
34 virtual void ViewHierarchyChanged(bool is_add, views::View* parent,
35 views::View* child);
36
37 // views::DialogDelegate methods:
38 virtual int GetDialogButtons() const;
39 virtual bool CanResize() const { return true; }
40 virtual bool CanMaximize() const { return false; }
41 virtual bool IsAlwaysOnTop() const { return false; }
42 virtual bool HasAlwaysOnTopMenu() const { return false; }
43 virtual std::wstring GetWindowTitle() const;
44 virtual void WindowClosing();
45 virtual views::View* GetContentsView();
46
47 private:
48 void Init();
49
50 // The Tab view that contains all of the options pages.
51 views::TabbedPane* tabs_;
52
53 PasswordsPageView* passwords_page_view_;
54
55 ExceptionsPageView* exceptions_page_view_;
56
57 Profile* profile_;
58
59 static PasswordsExceptionsWindowView* instance_;
60
61 DISALLOW_COPY_AND_ASSIGN(PasswordsExceptionsWindowView);
62 };
63
64 #endif // CHROME_BROWSER_VIEWS_OPTIONS_PASSWORDS_EXCEPTIONS_WINDOW_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/options/languages_page_view.cc ('k') | chrome/browser/views/options/passwords_exceptions_window_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698