2015-01-30 19:07:13 +01:00
|
|
|
// Copyright (c) 2015 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.
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#include "tests/cefclient/browser/root_window.h"
|
2015-01-30 19:07:13 +01:00
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#include "tests/cefclient/browser/main_context.h"
|
|
|
|
#include "tests/cefclient/browser/root_window_manager.h"
|
2015-01-30 19:07:13 +01:00
|
|
|
|
|
|
|
namespace client {
|
|
|
|
|
|
|
|
// static
|
2015-01-30 19:55:55 +01:00
|
|
|
scoped_refptr<RootWindow> RootWindow::GetForBrowser(int browser_id) {
|
2015-01-30 19:07:13 +01:00
|
|
|
return MainContext::Get()->GetRootWindowManager()->GetWindowForBrowser(
|
|
|
|
browser_id);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace client
|