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

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

Issue 321373003: Changing animate to beginFrame and use struct rather than naked double to allow extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding another FIXME comment. 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
« no previous file with comments | « Source/web/WebPagePopupImpl.cpp ('k') | Source/web/WebPopupMenuImpl.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) 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
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
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
OLDNEW
« no previous file with comments | « Source/web/WebPagePopupImpl.cpp ('k') | Source/web/WebPopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698