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

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

Issue 199069: Added an event handler to the GAIA login page which closes the dialog when it... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « AUTHORS ('k') | chrome/browser/views/html_dialog_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_HTML_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 23 matching lines...) Expand all
34 public views::WindowDelegate { 34 public views::WindowDelegate {
35 public: 35 public:
36 HtmlDialogView(Browser* parent_browser, HtmlDialogUIDelegate* delegate); 36 HtmlDialogView(Browser* parent_browser, HtmlDialogUIDelegate* delegate);
37 virtual ~HtmlDialogView(); 37 virtual ~HtmlDialogView();
38 38
39 // Initializes the contents of the dialog (the DOMView and the callbacks). 39 // Initializes the contents of the dialog (the DOMView and the callbacks).
40 void InitDialog(); 40 void InitDialog();
41 41
42 // Overridden from views::View: 42 // Overridden from views::View:
43 virtual gfx::Size GetPreferredSize(); 43 virtual gfx::Size GetPreferredSize();
44 virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
44 45
45 // Overridden from views::WindowDelegate: 46 // Overridden from views::WindowDelegate:
46 virtual bool CanResize() const; 47 virtual bool CanResize() const;
47 virtual bool IsModal() const; 48 virtual bool IsModal() const;
48 virtual std::wstring GetWindowTitle() const; 49 virtual std::wstring GetWindowTitle() const;
49 virtual void WindowClosing(); 50 virtual void WindowClosing();
50 virtual views::View* GetContentsView(); 51 virtual views::View* GetContentsView();
51 virtual views::View* GetInitiallyFocusedView(); 52 virtual views::View* GetInitiallyFocusedView();
52 53
53 // Overridden from HtmlDialogUI::Delegate: 54 // Overridden from HtmlDialogUI::Delegate:
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // This view is a delegate to the HTML content since it needs to get notified 95 // This view is a delegate to the HTML content since it needs to get notified
95 // about when the dialog is closing. For all other actions (besides dialog 96 // about when the dialog is closing. For all other actions (besides dialog
96 // closing) we delegate to the creator of this view, which we keep track of 97 // closing) we delegate to the creator of this view, which we keep track of
97 // using this variable. 98 // using this variable.
98 HtmlDialogUIDelegate* delegate_; 99 HtmlDialogUIDelegate* delegate_;
99 100
100 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); 101 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView);
101 }; 102 };
102 103
103 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ 104 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | chrome/browser/views/html_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698