forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ppapi] Merged two identical interface_name
In jumbo build experiments, two cc files both defined interface_name<PPB_InputEvent_1_0>() which clashed since in jumbo builds many cc files are compiled in the same translation unit. This moves the shared code to a shared file. Bug: 898475 Change-Id: I9ce58e837d663cb5c15ba2596c22812a41def4c0 Reviewed-on: https://chromium-review.googlesource.com/c/1297148 Reviewed-by: Bill Budge <bbudge@chromium.org> Reviewed-by: Antoine Labour <piman@chromium.org> Reviewed-by: Sam Clegg <sbc@chromium.org> Commit-Queue: Daniel Bratell <bratell@opera.com> Cr-Commit-Position: refs/heads/master@{#607601}
- Loading branch information
1 parent
5c64a81
commit 0781150
Showing
6 changed files
with
30 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright 2018 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_CPP_INPUT_EVENT_INTERFACE_NAME_H_ | ||
#define PPAPI_CPP_INPUT_EVENT_INTERFACE_NAME_H_ | ||
|
||
#include "ppapi/c/ppb_input_event.h" | ||
#include "ppapi/cpp/module_impl.h" | ||
|
||
namespace pp { | ||
|
||
namespace { | ||
|
||
// This implementation is shared between instance.cc and input_event.cc | ||
template <> | ||
const char* interface_name<PPB_InputEvent_1_0>() { | ||
return PPB_INPUT_EVENT_INTERFACE_1_0; | ||
} | ||
|
||
} // namespace | ||
} // namespace pp | ||
|
||
#endif // PPAPI_CPP_INPUT_EVENT_INTERFACE_NAME_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters