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

Side by Side Diff: ppapi/cpp/dev/widget_client_dev.h

Issue 9481015: Make the PPP wrappers take an Instance*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: USELESS PATCH DESCRIPTION Created 8 years, 10 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 | « ppapi/cpp/dev/video_decoder_client_dev.cc ('k') | ppapi/cpp/dev/widget_client_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_DEV_WIDGET_CLIENT_DEV_H_ 5 #ifndef PPAPI_CPP_DEV_WIDGET_CLIENT_DEV_H_
6 #define PPAPI_CPP_DEV_WIDGET_CLIENT_DEV_H_ 6 #define PPAPI_CPP_DEV_WIDGET_CLIENT_DEV_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/cpp/instance_handle.h" 9 #include "ppapi/cpp/instance_handle.h"
10 10
11 namespace pp { 11 namespace pp {
12 12
13 class Instance;
13 class Rect; 14 class Rect;
14 class Scrollbar_Dev; 15 class Scrollbar_Dev;
15 class Widget_Dev; 16 class Widget_Dev;
16 17
17 // This class provides a C++ interface for callbacks related to widgets. You 18 // This class provides a C++ interface for callbacks related to widgets. You
18 // would normally use multiple inheritance to derive from this class in your 19 // would normally use multiple inheritance to derive from this class in your
19 // instance. 20 // instance.
20 class WidgetClient_Dev { 21 class WidgetClient_Dev {
21 public: 22 public:
22 explicit WidgetClient_Dev(const InstanceHandle& instance); 23 explicit WidgetClient_Dev(Instance* instance);
23 virtual ~WidgetClient_Dev(); 24 virtual ~WidgetClient_Dev();
24 25
25 /** 26 /**
26 * Notification that the given widget should be repainted. This is the 27 * Notification that the given widget should be repainted. This is the
27 * implementation for PPP_Widget_Dev. 28 * implementation for PPP_Widget_Dev.
28 */ 29 */
29 virtual void InvalidateWidget(Widget_Dev widget, const Rect& dirty_rect) = 0; 30 virtual void InvalidateWidget(Widget_Dev widget, const Rect& dirty_rect) = 0;
30 31
31 /** 32 /**
32 * Notification that the given scrollbar should change value. This is the 33 * Notification that the given scrollbar should change value. This is the
33 * implementation for PPP_Scrollbar_Dev. 34 * implementation for PPP_Scrollbar_Dev.
34 */ 35 */
35 virtual void ScrollbarValueChanged(Scrollbar_Dev scrollbar, 36 virtual void ScrollbarValueChanged(Scrollbar_Dev scrollbar,
36 uint32_t value) = 0; 37 uint32_t value) = 0;
37 38
38 /** 39 /**
39 * Notification that the given scrollbar's overlay type has changed. This is 40 * Notification that the given scrollbar's overlay type has changed. This is
40 * the implementation for PPP_Scrollbar_Dev. 41 * the implementation for PPP_Scrollbar_Dev.
41 */ 42 */
42 virtual void ScrollbarOverlayChanged(Scrollbar_Dev scrollbar, 43 virtual void ScrollbarOverlayChanged(Scrollbar_Dev scrollbar,
43 bool type) = 0; 44 bool type) = 0;
44 45
45 private: 46 private:
46 InstanceHandle associated_instance_; 47 InstanceHandle associated_instance_;
47 }; 48 };
48 49
49 } // namespace pp 50 } // namespace pp
50 51
51 #endif // PPAPI_CPP_DEV_WIDGET_CLIENT_DEV_H_ 52 #endif // PPAPI_CPP_DEV_WIDGET_CLIENT_DEV_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/video_decoder_client_dev.cc ('k') | ppapi/cpp/dev/widget_client_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698