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

Side by Side Diff: Source/core/page/PagePopupController.h

Issue 1087743002: Support multiple displays for PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed IntRect inclusion Created 5 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
« no previous file with comments | « Source/core/page/PagePopup.h ('k') | Source/core/page/PagePopupController.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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #define PagePopupController_h 32 #define PagePopupController_h
33 33
34 #include "bindings/core/v8/ScriptWrappable.h" 34 #include "bindings/core/v8/ScriptWrappable.h"
35 #include "platform/heap/Handle.h" 35 #include "platform/heap/Handle.h"
36 #include "wtf/Forward.h" 36 #include "wtf/Forward.h"
37 #include "wtf/RefCounted.h" 37 #include "wtf/RefCounted.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class Document; 41 class Document;
42 class PagePopup;
42 class PagePopupClient; 43 class PagePopupClient;
43 44
44 class PagePopupController final : public RefCountedWillBeGarbageCollected<PagePo pupController>, public ScriptWrappable { 45 class PagePopupController final : public RefCountedWillBeGarbageCollected<PagePo pupController>, public ScriptWrappable {
45 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
46 public: 47 public:
47 static PassRefPtrWillBeRawPtr<PagePopupController> create(PagePopupClient*); 48 static PassRefPtrWillBeRawPtr<PagePopupController> create(PagePopup&, PagePo pupClient*);
48 void setValueAndClosePopup(int numValue, const String& stringValue); 49 void setValueAndClosePopup(int numValue, const String& stringValue);
49 void setValue(const String&); 50 void setValue(const String&);
50 void closePopup(); 51 void closePopup();
51 void selectFontsFromOwnerDocument(Document* targetDocument); 52 void selectFontsFromOwnerDocument(Document* targetDocument);
52 String localizeNumberString(const String&); 53 String localizeNumberString(const String&);
53 String formatMonth(int year, int zeroBaseMonth); 54 String formatMonth(int year, int zeroBaseMonth);
54 String formatShortMonth(int year, int zeroBaseMonth); 55 String formatShortMonth(int year, int zeroBaseMonth);
55 String formatWeek(int year, int weekNumber, const String& localizedStartDate ); 56 String formatWeek(int year, int weekNumber, const String& localizedStartDate );
56 void clearPagePopupClient(); 57 void clearPagePopupClient();
57 void histogramEnumeration(const String& name, int sample, int boundaryValue) ; 58 void histogramEnumeration(const String& name, int sample, int boundaryValue) ;
59 void setWindowRect(int x, int y, int width, int height);
58 60
59 DEFINE_INLINE_TRACE() { } 61 DEFINE_INLINE_TRACE() { }
60 62
61 private: 63 private:
62 explicit PagePopupController(PagePopupClient*); 64 PagePopupController(PagePopup&, PagePopupClient*);
63 65
66 PagePopup& m_popup;
64 PagePopupClient* m_popupClient; 67 PagePopupClient* m_popupClient;
65 }; 68 };
66 69
67 } // namespace blink 70 } // namespace blink
68 71
69 #endif // PagePopupController_h 72 #endif // PagePopupController_h
OLDNEW
« no previous file with comments | « Source/core/page/PagePopup.h ('k') | Source/core/page/PagePopupController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698