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

Side by Side Diff: chrome/browser/views/new_browser_window_widget.h

Issue 126235: Adds a widget that when clicked creates a new browser window. It's not... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/views/new_browser_window_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:eol-style
+ LF
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_NEW_BROWSER_WINDOW_WIDGET_H_
6 #define CHROME_BROWSER_VIEWS_NEW_BROWSER_WINDOW_WIDGET_H_
7
8 #include "views/controls/button/button.h"
9
10 class Profile;
11
12 namespace views {
13 class Widget;
14 }
15
16 // NewBrowserWindowWidget creates a window containing a single button that
17 // when clicked creates a new Browser. NewBrowserWindowWidget shows the window
18 // from its constructor, and closes it from the destructor.
19 class NewBrowserWindowWidget : public views::ButtonListener {
20 public:
21 explicit NewBrowserWindowWidget(Profile* profile);
22 ~NewBrowserWindowWidget();
23
24 // ButtonListener implementation.
25 virtual void ButtonPressed(views::Button* sender);
26
27 private:
28 // The profile the browser is created with.
29 Profile* profile_;
30
31 // The widget containing the button.
32 views::Widget* widget_;
33
34 DISALLOW_COPY_AND_ASSIGN(NewBrowserWindowWidget);
35 };
36
37 #endif // CHROME_BROWSER_VIEWS_NEW_BROWSER_WINDOW_WIDGET_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/new_browser_window_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698