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

Side by Side Diff: Source/web/ExternalPopupMenu.h

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/web/ExternalDateTimeChooser.cpp ('k') | Source/web/ExternalPopupMenu.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 19 matching lines...) Expand all
30 30
31 #ifndef ExternalPopupMenu_h 31 #ifndef ExternalPopupMenu_h
32 #define ExternalPopupMenu_h 32 #define ExternalPopupMenu_h
33 33
34 #include "platform/PopupMenu.h" 34 #include "platform/PopupMenu.h"
35 #include "platform/Timer.h" 35 #include "platform/Timer.h"
36 #include "public/platform/WebCanvas.h" 36 #include "public/platform/WebCanvas.h"
37 #include "public/platform/WebScrollbar.h" 37 #include "public/platform/WebScrollbar.h"
38 #include "public/web/WebExternalPopupMenuClient.h" 38 #include "public/web/WebExternalPopupMenuClient.h"
39 39
40 namespace WebCore { 40 namespace blink {
41 class FloatQuad; 41 class FloatQuad;
42 class LocalFrame; 42 class LocalFrame;
43 class FrameView; 43 class FrameView;
44 class IntRect; 44 class IntRect;
45 class IntSize; 45 class IntSize;
46 class PopupMenuClient; 46 class PopupMenuClient;
47 } 47 }
48 48
49 namespace blink { 49 namespace blink {
50 50
51 class WebExternalPopupMenu; 51 class WebExternalPopupMenu;
52 class WebViewImpl; 52 class WebViewImpl;
53 struct WebPopupMenuInfo; 53 struct WebPopupMenuInfo;
54 class WebMouseEvent; 54 class WebMouseEvent;
55 55
56 // The ExternalPopupMenu connects the actual implementation of the popup menu 56 // The ExternalPopupMenu connects the actual implementation of the popup menu
57 // to the WebCore popup menu. 57 // to the WebCore popup menu.
58 class ExternalPopupMenu FINAL : public WebCore::PopupMenu, public WebExternalPop upMenuClient { 58 class ExternalPopupMenu FINAL : public blink::PopupMenu, public WebExternalPopup MenuClient {
59 public: 59 public:
60 ExternalPopupMenu(WebCore::LocalFrame&, WebCore::PopupMenuClient*, WebViewIm pl&); 60 ExternalPopupMenu(blink::LocalFrame&, blink::PopupMenuClient*, WebViewImpl&) ;
61 virtual ~ExternalPopupMenu(); 61 virtual ~ExternalPopupMenu();
62 62
63 private: 63 private:
64 // WebCore::PopupMenu methods: 64 // blink::PopupMenu methods:
65 virtual void show(const WebCore::FloatQuad& controlPosition, const WebCore:: IntSize&, int index) OVERRIDE; 65 virtual void show(const blink::FloatQuad& controlPosition, const blink::IntS ize&, int index) OVERRIDE;
66 virtual void hide() OVERRIDE; 66 virtual void hide() OVERRIDE;
67 virtual void updateFromElement() OVERRIDE; 67 virtual void updateFromElement() OVERRIDE;
68 virtual void disconnectClient() OVERRIDE; 68 virtual void disconnectClient() OVERRIDE;
69 69
70 // WebExternalPopupClient methods: 70 // WebExternalPopupClient methods:
71 virtual void didChangeSelection(int index) OVERRIDE; 71 virtual void didChangeSelection(int index) OVERRIDE;
72 virtual void didAcceptIndex(int index) OVERRIDE; 72 virtual void didAcceptIndex(int index) OVERRIDE;
73 virtual void didAcceptIndices(const WebVector<int>& indices) OVERRIDE; 73 virtual void didAcceptIndices(const WebVector<int>& indices) OVERRIDE;
74 virtual void didCancel() OVERRIDE; 74 virtual void didCancel() OVERRIDE;
75 75
76 void dispatchEvent(WebCore::Timer<ExternalPopupMenu>*); 76 void dispatchEvent(blink::Timer<ExternalPopupMenu>*);
77 // Fills |info| with the popup menu information contained in the 77 // Fills |info| with the popup menu information contained in the
78 // WebCore::PopupMenuClient associated with this ExternalPopupMenu. 78 // blink::PopupMenuClient associated with this ExternalPopupMenu.
79 void getPopupMenuInfo(WebPopupMenuInfo* info); 79 void getPopupMenuInfo(WebPopupMenuInfo* info);
80 80
81 WebCore::PopupMenuClient* m_popupMenuClient; 81 blink::PopupMenuClient* m_popupMenuClient;
82 RefPtr<WebCore::FrameView> m_frameView; 82 RefPtr<blink::FrameView> m_frameView;
83 WebViewImpl& m_webView; 83 WebViewImpl& m_webView;
84 OwnPtr<WebMouseEvent> m_syntheticEvent; 84 OwnPtr<WebMouseEvent> m_syntheticEvent;
85 WebCore::Timer<ExternalPopupMenu> m_dispatchEventTimer; 85 blink::Timer<ExternalPopupMenu> m_dispatchEventTimer;
86 // The actual implementor of the show menu. 86 // The actual implementor of the show menu.
87 WebExternalPopupMenu* m_webExternalPopupMenu; 87 WebExternalPopupMenu* m_webExternalPopupMenu;
88 }; 88 };
89 89
90 } // namespace blink 90 } // namespace blink
91 91
92 #endif // ExternalPopupMenu_h 92 #endif // ExternalPopupMenu_h
OLDNEW
« no previous file with comments | « Source/web/ExternalDateTimeChooser.cpp ('k') | Source/web/ExternalPopupMenu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698