diff options
author | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 02:06:52 +0000 |
---|---|---|
committer | jln@chromium.org <jln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-14 02:06:52 +0000 |
commit | 20553490d852f32afb52e56dd68a8b9ca8ab2d6f (patch) | |
tree | 1c9736fc04975b81fd538cdde3dee942bc9f4fd5 /ppapi | |
parent | 684003e2fb896d674c4202edeae9219b7ea167be (diff) | |
download | chromium_src-20553490d852f32afb52e56dd68a8b9ca8ab2d6f.zip chromium_src-20553490d852f32afb52e56dd68a8b9ca8ab2d6f.tar.gz chromium_src-20553490d852f32afb52e56dd68a8b9ca8ab2d6f.tar.bz2 |
Do a giant svn propset svn:eol-style LF on .cc and .h files that
lack this property.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/proxy/browser_font_singleton_resource.cc | 76 | ||||
-rw-r--r-- | ppapi/proxy/browser_font_singleton_resource.h | 84 | ||||
-rw-r--r-- | ppapi/thunk/ppb_browser_font_singleton_api.h | 56 |
3 files changed, 108 insertions, 108 deletions
diff --git a/ppapi/proxy/browser_font_singleton_resource.cc b/ppapi/proxy/browser_font_singleton_resource.cc index 8abe72f..0805126 100644 --- a/ppapi/proxy/browser_font_singleton_resource.cc +++ b/ppapi/proxy/browser_font_singleton_resource.cc @@ -1,38 +1,38 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ppapi/proxy/browser_font_singleton_resource.h"
-
-#include "ppapi/proxy/ppapi_messages.h"
-#include "ppapi/shared_impl/var.h"
-
-namespace ppapi {
-namespace proxy {
-
-BrowserFontSingletonResource::BrowserFontSingletonResource(
- Connection connection,
- PP_Instance instance)
- : PluginResource(connection, instance) {
- SendCreate(BROWSER, PpapiHostMsg_BrowserFontSingleton_Create());
-}
-
-BrowserFontSingletonResource::~BrowserFontSingletonResource() {
-}
-
-thunk::PPB_BrowserFont_Singleton_API*
-BrowserFontSingletonResource::AsPPB_BrowserFont_Singleton_API() {
- return this;
-}
-
-PP_Var BrowserFontSingletonResource::GetFontFamilies(PP_Instance instance) {
- if (families_.empty()) {
- SyncCall<PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply>(
- BROWSER, PpapiHostMsg_BrowserFontSingleton_GetFontFamilies(),
- &families_);
- }
- return StringVar::StringToPPVar(families_);
-}
-
-} // namespace proxy
-} // namespace ppapi
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "ppapi/proxy/browser_font_singleton_resource.h" + +#include "ppapi/proxy/ppapi_messages.h" +#include "ppapi/shared_impl/var.h" + +namespace ppapi { +namespace proxy { + +BrowserFontSingletonResource::BrowserFontSingletonResource( + Connection connection, + PP_Instance instance) + : PluginResource(connection, instance) { + SendCreate(BROWSER, PpapiHostMsg_BrowserFontSingleton_Create()); +} + +BrowserFontSingletonResource::~BrowserFontSingletonResource() { +} + +thunk::PPB_BrowserFont_Singleton_API* +BrowserFontSingletonResource::AsPPB_BrowserFont_Singleton_API() { + return this; +} + +PP_Var BrowserFontSingletonResource::GetFontFamilies(PP_Instance instance) { + if (families_.empty()) { + SyncCall<PpapiPluginMsg_BrowserFontSingleton_GetFontFamiliesReply>( + BROWSER, PpapiHostMsg_BrowserFontSingleton_GetFontFamilies(), + &families_); + } + return StringVar::StringToPPVar(families_); +} + +} // namespace proxy +} // namespace ppapi diff --git a/ppapi/proxy/browser_font_singleton_resource.h b/ppapi/proxy/browser_font_singleton_resource.h index 6bacc6f..50b88dc 100644 --- a/ppapi/proxy/browser_font_singleton_resource.h +++ b/ppapi/proxy/browser_font_singleton_resource.h @@ -1,42 +1,42 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_
-#define PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_
-
-#include "ppapi/proxy/connection.h"
-#include "ppapi/proxy/plugin_resource.h"
-#include "ppapi/thunk/ppb_browser_font_singleton_api.h"
-
-namespace ppapi {
-namespace proxy {
-
-// This handles the singleton calls (that don't take a PP_Resource parameter)
-// on the browser font interface
-class BrowserFontSingletonResource
- : public PluginResource,
- public thunk::PPB_BrowserFont_Singleton_API {
- public:
- BrowserFontSingletonResource(Connection connection, PP_Instance instance);
- virtual ~BrowserFontSingletonResource();
-
- // Resource override.
- virtual thunk::PPB_BrowserFont_Singleton_API*
- AsPPB_BrowserFont_Singleton_API() OVERRIDE;
-
- // thunk::PPB_BrowserFontSingleton_API implementation.
- virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE;
-
- private:
- // Lazily-filled-in list of font families.
- std::string families_;
-
- DISALLOW_COPY_AND_ASSIGN(BrowserFontSingletonResource);
-};
-
-} // namespace proxy
-} // namespace ppapi
-
-#endif // PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_
-
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_ +#define PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_ + +#include "ppapi/proxy/connection.h" +#include "ppapi/proxy/plugin_resource.h" +#include "ppapi/thunk/ppb_browser_font_singleton_api.h" + +namespace ppapi { +namespace proxy { + +// This handles the singleton calls (that don't take a PP_Resource parameter) +// on the browser font interface +class BrowserFontSingletonResource + : public PluginResource, + public thunk::PPB_BrowserFont_Singleton_API { + public: + BrowserFontSingletonResource(Connection connection, PP_Instance instance); + virtual ~BrowserFontSingletonResource(); + + // Resource override. + virtual thunk::PPB_BrowserFont_Singleton_API* + AsPPB_BrowserFont_Singleton_API() OVERRIDE; + + // thunk::PPB_BrowserFontSingleton_API implementation. + virtual PP_Var GetFontFamilies(PP_Instance instance) OVERRIDE; + + private: + // Lazily-filled-in list of font families. + std::string families_; + + DISALLOW_COPY_AND_ASSIGN(BrowserFontSingletonResource); +}; + +} // namespace proxy +} // namespace ppapi + +#endif // PPAPI_PROXY_BROWSER_FONT_SINGLETON_RESOURCE_H_ + diff --git a/ppapi/thunk/ppb_browser_font_singleton_api.h b/ppapi/thunk/ppb_browser_font_singleton_api.h index 0f31d25..e5717d6 100644 --- a/ppapi/thunk/ppb_browser_font_singleton_api.h +++ b/ppapi/thunk/ppb_browser_font_singleton_api.h @@ -1,28 +1,28 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PPAPI_THUNK_PPB_BROWSER_FONT_SINGLETON_API_H_
-#define PPAPI_THUNK_PPB_BROWSER_FONT_SINGLETON_API_H_
-
-#include "ppapi/c/pp_instance.h"
-#include "ppapi/c/pp_var.h"
-#include "ppapi/shared_impl/singleton_resource_id.h"
-
-namespace ppapi {
-namespace thunk {
-
-class PPB_BrowserFont_Singleton_API {
- public:
- virtual ~PPB_BrowserFont_Singleton_API() {}
-
- virtual PP_Var GetFontFamilies(PP_Instance instance) = 0;
-
- static const SingletonResourceID kSingletonResourceID =
- BROWSER_FONT_SINGLETON_ID;
-};
-
-} // namespace thunk
-} // namespace ppapi
-
-#endif // PPAPI_THUNK_PPB_BROWSER_FONT_SINGLETON_API_H_
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef PPAPI_THUNK_PPB_BROWSER_FONT_SINGLETON_API_H_ +#define PPAPI_THUNK_PPB_BROWSER_FONT_SINGLETON_API_H_ + +#include "ppapi/c/pp_instance.h" +#include "ppapi/c/pp_var.h" +#include "ppapi/shared_impl/singleton_resource_id.h" + +namespace ppapi { +namespace thunk { + +class PPB_BrowserFont_Singleton_API { + public: + virtual ~PPB_BrowserFont_Singleton_API() {} + + virtual PP_Var GetFontFamilies(PP_Instance instance) = 0; + + static const SingletonResourceID kSingletonResourceID = + BROWSER_FONT_SINGLETON_ID; +}; + +} // namespace thunk +} // namespace ppapi + +#endif // PPAPI_THUNK_PPB_BROWSER_FONT_SINGLETON_API_H_ |