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

Side by Side Diff: ppapi/shared_impl/ppb_view_shared.h

Issue 1097393007: Update {virtual,override} to follow C++11 style in ppapi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split off one file into separate review. 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SHARED_IMPL_PPB_VIEW_SHARED_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_
6 #define PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ 6 #define PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ppapi/c/pp_rect.h" 9 #include "ppapi/c/pp_rect.h"
10 #include "ppapi/c/pp_size.h" 10 #include "ppapi/c/pp_size.h"
(...skipping 18 matching lines...) Expand all
29 float css_scale; 29 float css_scale;
30 PP_Point scroll_offset; 30 PP_Point scroll_offset;
31 }; 31 };
32 32
33 class PPAPI_SHARED_EXPORT PPB_View_Shared : public Resource, 33 class PPAPI_SHARED_EXPORT PPB_View_Shared : public Resource,
34 public thunk::PPB_View_API { 34 public thunk::PPB_View_API {
35 public: 35 public:
36 PPB_View_Shared(ResourceObjectType type, 36 PPB_View_Shared(ResourceObjectType type,
37 PP_Instance instance, 37 PP_Instance instance,
38 const ViewData& data); 38 const ViewData& data);
39 virtual ~PPB_View_Shared(); 39 ~PPB_View_Shared() override;
40 40
41 // Resource overrides. 41 // Resource overrides.
42 virtual thunk::PPB_View_API* AsPPB_View_API() override; 42 thunk::PPB_View_API* AsPPB_View_API() override;
43 43
44 // PPB_View_API implementation. 44 // PPB_View_API implementation.
45 virtual const ViewData& GetData() const override; 45 const ViewData& GetData() const override;
46 virtual PP_Bool GetRect(PP_Rect* viewport) const override; 46 PP_Bool GetRect(PP_Rect* viewport) const override;
47 virtual PP_Bool IsFullscreen() const override; 47 PP_Bool IsFullscreen() const override;
48 virtual PP_Bool IsVisible() const override; 48 PP_Bool IsVisible() const override;
49 virtual PP_Bool IsPageVisible() const override; 49 PP_Bool IsPageVisible() const override;
50 virtual PP_Bool GetClipRect(PP_Rect* clip) const override; 50 PP_Bool GetClipRect(PP_Rect* clip) const override;
51 virtual float GetDeviceScale() const override; 51 float GetDeviceScale() const override;
52 virtual float GetCSSScale() const override; 52 float GetCSSScale() const override;
53 virtual PP_Bool GetScrollOffset(PP_Point* scroll_offset) const override; 53 PP_Bool GetScrollOffset(PP_Point* scroll_offset) const override;
54 54
55 private: 55 private:
56 ViewData data_; 56 ViewData data_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(PPB_View_Shared); 58 DISALLOW_COPY_AND_ASSIGN(PPB_View_Shared);
59 }; 59 };
60 60
61 } // namespace ppapi 61 } // namespace ppapi
62 62
63 #endif // PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ 63 #endif // PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_video_decoder_shared.h ('k') | ppapi/shared_impl/private/ppb_x509_certificate_private_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698