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

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

Issue 332039: Add "remember my choice" checkbox for windows external protocol dialog.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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/external_protocol_dialog.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) 2009 The Chromium Authors. All rights reserved. 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 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_EXTERNAL_PROTOCOL_DIALOG_H_ 5 #ifndef CHROME_BROWSER_EXTERNAL_PROTOCOL_DIALOG_H_
6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_DIALOG_H_ 6 #define CHROME_BROWSER_EXTERNAL_PROTOCOL_DIALOG_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "views/window/dialog_delegate.h" 10 #include "views/window/dialog_delegate.h"
(...skipping 13 matching lines...) Expand all
24 static std::wstring GetApplicationForProtocol(const GURL& url); 24 static std::wstring GetApplicationForProtocol(const GURL& url);
25 25
26 virtual ~ExternalProtocolDialog(); 26 virtual ~ExternalProtocolDialog();
27 27
28 // views::DialogDelegate Methods: 28 // views::DialogDelegate Methods:
29 virtual int GetDefaultDialogButton() const; 29 virtual int GetDefaultDialogButton() const;
30 virtual std::wstring GetDialogButtonLabel( 30 virtual std::wstring GetDialogButtonLabel(
31 MessageBoxFlags::DialogButton button) const; 31 MessageBoxFlags::DialogButton button) const;
32 virtual std::wstring GetWindowTitle() const; 32 virtual std::wstring GetWindowTitle() const;
33 virtual void DeleteDelegate(); 33 virtual void DeleteDelegate();
34 virtual bool Cancel();
34 virtual bool Accept(); 35 virtual bool Accept();
35 virtual views::View* GetContentsView(); 36 virtual views::View* GetContentsView();
36 37
37 // views::WindowDelegate Methods: 38 // views::WindowDelegate Methods:
38 virtual bool IsAlwaysOnTop() const { return false; } 39 virtual bool IsAlwaysOnTop() const { return false; }
39 virtual bool IsModal() const { return false; } 40 virtual bool IsModal() const { return false; }
40 41
41 private: 42 private:
42 // The message box view whose commands we handle. 43 // The message box view whose commands we handle.
43 MessageBoxView* message_box_view_; 44 MessageBoxView* message_box_view_;
44 45
45 // The associated TabContents. 46 // The associated TabContents.
46 TabContents* tab_contents_; 47 TabContents* tab_contents_;
47 48
48 // URL of the external protocol request. 49 // URL of the external protocol request.
49 GURL url_; 50 GURL url_;
50 51
51 // The time at which this dialog was created. 52 // The time at which this dialog was created.
52 base::Time creation_time_; 53 base::Time creation_time_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog); 55 DISALLOW_COPY_AND_ASSIGN(ExternalProtocolDialog);
55 }; 56 };
56 57
57 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_DIALOG_H_ 58 #endif // CHROME_BROWSER_EXTERNAL_PROTOCOL_DIALOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/external_protocol_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698