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

Side by Side Diff: third_party/WebKit/Source/web/ExternalDateTimeChooser.h

Issue 2886653002: Removed dependency of ExternalDateTimeChooser on ChromeClientImpl (Closed)
Patch Set: Rebase Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ExternalDateTimeChooser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * SUCH DAMAGE. 23 * SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef ExternalDateTimeChooser_h 26 #ifndef ExternalDateTimeChooser_h
27 #define ExternalDateTimeChooser_h 27 #define ExternalDateTimeChooser_h
28 28
29 #include "core/html/forms/DateTimeChooser.h" 29 #include "core/html/forms/DateTimeChooser.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class ChromeClientImpl; 33 class ChromeClient;
34 class DateTimeChooserClient; 34 class DateTimeChooserClient;
35 class WebString; 35 class WebString;
36 class WebViewClient; 36 class WebViewClient;
37 37
38 class ExternalDateTimeChooser final : public DateTimeChooser { 38 class ExternalDateTimeChooser final : public DateTimeChooser {
39 public: 39 public:
40 static ExternalDateTimeChooser* Create(ChromeClientImpl*, 40 static ExternalDateTimeChooser* Create(ChromeClient*,
41 WebViewClient*, 41 WebViewClient*,
42 DateTimeChooserClient*, 42 DateTimeChooserClient*,
43 const DateTimeChooserParameters&); 43 const DateTimeChooserParameters&);
44 ~ExternalDateTimeChooser() override; 44 ~ExternalDateTimeChooser() override;
45 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
46 46
47 // The following functions are for DateTimeChooserCompletion. 47 // The following functions are for DateTimeChooserCompletion.
48 void DidChooseValue(const WebString&); 48 void DidChooseValue(const WebString&);
49 void DidChooseValue(double); 49 void DidChooseValue(double);
50 void DidCancelChooser(); 50 void DidCancelChooser();
51 51
52 private: 52 private:
53 ExternalDateTimeChooser(DateTimeChooserClient*); 53 ExternalDateTimeChooser(DateTimeChooserClient*);
54 bool OpenDateTimeChooser(ChromeClientImpl*, 54 bool OpenDateTimeChooser(ChromeClient*,
55 WebViewClient*, 55 WebViewClient*,
56 const DateTimeChooserParameters&); 56 const DateTimeChooserParameters&);
57 57
58 // DateTimeChooser function: 58 // DateTimeChooser function:
59 void EndChooser() override; 59 void EndChooser() override;
60 AXObject* RootAXObject() override; 60 AXObject* RootAXObject() override;
61 61
62 Member<DateTimeChooserClient> client_; 62 Member<DateTimeChooserClient> client_;
63 }; 63 };
64 } 64 }
65 #endif 65 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/ExternalDateTimeChooser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698