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

Side by Side Diff: ppapi/thunk/ppb_flash_message_loop_thunk.cc

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use Popen instead, force carriage returns in thunks Created 6 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 | Annotate | Revision Log
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 #include "ppapi/c/pp_bool.h" 5 #include "ppapi/c/pp_bool.h"
6 #include "ppapi/c/pp_errors.h" 6 #include "ppapi/c/pp_errors.h"
7 #include "ppapi/thunk/enter.h" 7 #include "ppapi/thunk/enter.h"
8 #include "ppapi/thunk/ppb_flash_message_loop_api.h" 8 #include "ppapi/thunk/ppb_flash_message_loop_api.h"
9 #include "ppapi/thunk/resource_creation_api.h" 9 #include "ppapi/thunk/resource_creation_api.h"
10 #include "ppapi/thunk/thunk.h" 10 #include "ppapi/thunk/thunk.h"
(...skipping 22 matching lines...) Expand all
33 return enter.object()->Run(); 33 return enter.object()->Run();
34 } 34 }
35 35
36 void Quit(PP_Resource resource) { 36 void Quit(PP_Resource resource) {
37 EnterResource<PPB_Flash_MessageLoop_API> enter(resource, true); 37 EnterResource<PPB_Flash_MessageLoop_API> enter(resource, true);
38 if (enter.succeeded()) 38 if (enter.succeeded())
39 enter.object()->Quit(); 39 enter.object()->Quit();
40 } 40 }
41 41
42 const PPB_Flash_MessageLoop g_ppb_flash_message_loop_thunk = { 42 const PPB_Flash_MessageLoop g_ppb_flash_message_loop_thunk = {
43 &Create, 43 &Create, &IsFlashMessageLoop, &Run, &Quit};
44 &IsFlashMessageLoop,
45 &Run,
46 &Quit
47 };
48 44
49 } // namespace 45 } // namespace
50 46
51 const PPB_Flash_MessageLoop_0_1* GetPPB_Flash_MessageLoop_0_1_Thunk() { 47 const PPB_Flash_MessageLoop_0_1* GetPPB_Flash_MessageLoop_0_1_Thunk() {
52 return &g_ppb_flash_message_loop_thunk; 48 return &g_ppb_flash_message_loop_thunk;
53 } 49 }
54 50
55 } // namespace thunk 51 } // namespace thunk
56 } // namespace ppapi 52 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698