mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-07 15:53:08 +01:00
49a34d9160
Add "cef/" prefix for CEF #includes in libcef/ directory. Sort #includes by following https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
20 lines
595 B
C++
20 lines
595 B
C++
// Copyright 2021 The Chromium Embedded Framework 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 "cef/libcef/browser/extensions/alloy_extensions_util.h"
|
|
|
|
#include "cef/libcef/browser/alloy/alloy_browser_host_impl.h"
|
|
|
|
namespace extensions::alloy {
|
|
|
|
int GetTabIdForWebContents(content::WebContents* web_contents) {
|
|
auto browser = AlloyBrowserHostImpl::GetBrowserForContents(web_contents);
|
|
if (!browser) {
|
|
return -1;
|
|
}
|
|
return browser->GetIdentifier();
|
|
}
|
|
|
|
} // namespace extensions::alloy
|