Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@ -28,7 +28,10 @@ void Toggle(HWND root_hwnd, UINT nCmdShow) {
}
void SetPosImpl(CefRefPtr<CefBrowser> browser,
int x, int y, int width, int height) {
int x,
int y,
int width,
int height) {
HWND root_hwnd = GetRootHwnd(browser);
if (!root_hwnd)
return;
@ -38,18 +41,16 @@ void SetPosImpl(CefRefPtr<CefBrowser> browser,
::GetWindowPlacement(root_hwnd, &placement);
// Retrieve information about the display that contains the window.
HMONITOR monitor = MonitorFromRect(&placement.rcNormalPosition,
MONITOR_DEFAULTTONEAREST);
HMONITOR monitor =
MonitorFromRect(&placement.rcNormalPosition, MONITOR_DEFAULTTONEAREST);
MONITORINFO info;
info.cbSize = sizeof(info);
GetMonitorInfo(monitor, &info);
// Make sure the window is inside the display.
CefRect display_rect(
info.rcWork.left,
info.rcWork.top,
info.rcWork.right - info.rcWork.left,
info.rcWork.bottom - info.rcWork.top);
CefRect display_rect(info.rcWork.left, info.rcWork.top,
info.rcWork.right - info.rcWork.left,
info.rcWork.bottom - info.rcWork.top);
CefRect window_rect(x, y, width, height);
WindowTestRunner::ModifyBounds(display_rect, window_rect);
@ -92,11 +93,13 @@ void RestoreImpl(CefRefPtr<CefBrowser> browser) {
} // namespace
WindowTestRunnerWin::WindowTestRunnerWin() {
}
WindowTestRunnerWin::WindowTestRunnerWin() {}
void WindowTestRunnerWin::SetPos(CefRefPtr<CefBrowser> browser,
int x, int y, int width, int height) {
int x,
int y,
int width,
int height) {
if (CURRENTLY_ON_MAIN_THREAD()) {
SetPosImpl(browser, x, y, width, height);
} else {