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

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

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 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
« no previous file with comments | « ppapi/shared_impl/ppb_video_decoder_shared.cc ('k') | ppapi/shared_impl/ppb_view_shared.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) 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 11 matching lines...) Expand all
22 bool Equals(const ViewData& other) const; 22 bool Equals(const ViewData& other) const;
23 23
24 PP_Rect rect; 24 PP_Rect rect;
25 bool is_fullscreen; 25 bool is_fullscreen;
26 bool is_page_visible; 26 bool is_page_visible;
27 PP_Rect clip_rect; 27 PP_Rect clip_rect;
28 float device_scale; 28 float device_scale;
29 float css_scale; 29 float css_scale;
30 }; 30 };
31 31
32 class PPAPI_SHARED_EXPORT PPB_View_Shared 32 class PPAPI_SHARED_EXPORT PPB_View_Shared : public Resource,
33 : public Resource, 33 public thunk::PPB_View_API {
34 public thunk::PPB_View_API {
35 public: 34 public:
36 PPB_View_Shared(ResourceObjectType type, 35 PPB_View_Shared(ResourceObjectType type,
37 PP_Instance instance, 36 PP_Instance instance,
38 const ViewData& data); 37 const ViewData& data);
39 virtual ~PPB_View_Shared(); 38 virtual ~PPB_View_Shared();
40 39
41 // Resource overrides. 40 // Resource overrides.
42 virtual thunk::PPB_View_API* AsPPB_View_API() OVERRIDE; 41 virtual thunk::PPB_View_API* AsPPB_View_API() OVERRIDE;
43 42
44 // PPB_View_API implementation. 43 // PPB_View_API implementation.
45 virtual const ViewData& GetData() const OVERRIDE; 44 virtual const ViewData& GetData() const OVERRIDE;
46 virtual PP_Bool GetRect(PP_Rect* viewport) const OVERRIDE; 45 virtual PP_Bool GetRect(PP_Rect* viewport) const OVERRIDE;
47 virtual PP_Bool IsFullscreen() const OVERRIDE; 46 virtual PP_Bool IsFullscreen() const OVERRIDE;
48 virtual PP_Bool IsVisible() const OVERRIDE; 47 virtual PP_Bool IsVisible() const OVERRIDE;
49 virtual PP_Bool IsPageVisible() const OVERRIDE; 48 virtual PP_Bool IsPageVisible() const OVERRIDE;
50 virtual PP_Bool GetClipRect(PP_Rect* clip) const 49 virtual PP_Bool GetClipRect(PP_Rect* clip) const OVERRIDE;
51 OVERRIDE;
52 virtual float GetDeviceScale() const OVERRIDE; 50 virtual float GetDeviceScale() const OVERRIDE;
53 virtual float GetCSSScale() const OVERRIDE; 51 virtual float GetCSSScale() const OVERRIDE;
54 52
55 private: 53 private:
56 ViewData data_; 54 ViewData data_;
57 55
58 DISALLOW_COPY_AND_ASSIGN(PPB_View_Shared); 56 DISALLOW_COPY_AND_ASSIGN(PPB_View_Shared);
59 }; 57 };
60 58
61 } // namespace ppapi 59 } // namespace ppapi
62 60
63 #endif // PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_ 61 #endif // PPAPI_SHARED_IMPL_PPB_VIEW_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_video_decoder_shared.cc ('k') | ppapi/shared_impl/ppb_view_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698