OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 class WebPopupMenuImpl : public WebPopupMenu, public WebCore::FramelessScrollVie
wClient, public WebContentLayerClient, public RefCounted<WebPopupMenuImpl> { | 63 class WebPopupMenuImpl : public WebPopupMenu, public WebCore::FramelessScrollVie
wClient, public WebContentLayerClient, public RefCounted<WebPopupMenuImpl> { |
64 WTF_MAKE_FAST_ALLOCATED; | 64 WTF_MAKE_FAST_ALLOCATED; |
65 public: | 65 public: |
66 // WebWidget functions: | 66 // WebWidget functions: |
67 virtual void close() OVERRIDE FINAL; | 67 virtual void close() OVERRIDE FINAL; |
68 virtual WebSize size() OVERRIDE FINAL { return m_size; } | 68 virtual WebSize size() OVERRIDE FINAL { return m_size; } |
69 virtual void willStartLiveResize() OVERRIDE FINAL; | 69 virtual void willStartLiveResize() OVERRIDE FINAL; |
70 virtual void resize(const WebSize&) OVERRIDE FINAL; | 70 virtual void resize(const WebSize&) OVERRIDE FINAL; |
71 virtual void willEndLiveResize() OVERRIDE FINAL; | 71 virtual void willEndLiveResize() OVERRIDE FINAL; |
72 virtual void animate(double frameBeginTime) OVERRIDE FINAL; | 72 virtual void beginFrame(const WebBeginFrameArgs&) OVERRIDE FINAL; |
73 virtual void layout() OVERRIDE FINAL; | 73 virtual void layout() OVERRIDE FINAL; |
74 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE FINAL; | 74 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE FINAL; |
75 virtual void themeChanged() OVERRIDE FINAL; | 75 virtual void themeChanged() OVERRIDE FINAL; |
76 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE FINAL; | 76 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE FINAL; |
77 virtual void mouseCaptureLost() OVERRIDE FINAL; | 77 virtual void mouseCaptureLost() OVERRIDE FINAL; |
78 virtual void setFocus(bool enable) OVERRIDE FINAL; | 78 virtual void setFocus(bool enable) OVERRIDE FINAL; |
79 virtual bool setComposition( | 79 virtual bool setComposition( |
80 const WebString& text, | 80 const WebString& text, |
81 const WebVector<WebCompositionUnderline>& underlines, | 81 const WebVector<WebCompositionUnderline>& underlines, |
82 int selectionStart, int selectionEnd) OVERRIDE FINAL; | 82 int selectionStart, int selectionEnd) OVERRIDE FINAL; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 }; | 141 }; |
142 | 142 |
143 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); | 143 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); |
144 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so | 144 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so |
145 // no need for further checking. | 145 // no need for further checking. |
146 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebCore::FramelessScrollViewClient, client,
true, true); | 146 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebCore::FramelessScrollViewClient, client,
true, true); |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
149 | 149 |
150 #endif | 150 #endif |
OLD | NEW |