Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7942)

Unified Diff: chrome_frame/infobars/internal/displaced_window_manager.cc

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome_frame/infobars/internal/displaced_window_manager.cc
diff --git a/chrome_frame/infobars/internal/displaced_window_manager.cc b/chrome_frame/infobars/internal/displaced_window_manager.cc
deleted file mode 100644
index 0afce36d6f4edfb830443981d7f8a05590f61d4f..0000000000000000000000000000000000000000
--- a/chrome_frame/infobars/internal/displaced_window_manager.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2010 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 "chrome_frame/infobars/internal/displaced_window_manager.h"
-
-DisplacedWindowManager::DisplacedWindowManager() {
-}
-
-void DisplacedWindowManager::UpdateLayout() {
- // Call SetWindowPos with SWP_FRAMECHANGED for displaced window.
- // Displaced window will receive WM_NCCALCSIZE to recalculate its client size.
- ::SetWindowPos(m_hWnd,
- NULL, 0, 0, 0, 0,
- SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER |
- SWP_FRAMECHANGED);
-}
-
-LRESULT DisplacedWindowManager::OnNcCalcSize(BOOL calc_valid_rects,
- LPARAM lparam) {
- // Ask the original window proc to calculate the 'natural' size of the window.
- LRESULT ret = DefWindowProc(WM_NCCALCSIZE,
- static_cast<WPARAM>(calc_valid_rects), lparam);
- if (lparam == NULL)
- return ret;
-
- // Whether calc_valid_rects is true or false, we could treat beginning of
- // lparam as a RECT object.
- RECT* rect = reinterpret_cast<RECT*>(lparam);
- RECT natural_rect = *rect;
- if (delegate() != NULL)
- delegate()->AdjustDisplacedWindowDimensions(rect);
-
- // If we modified the window's dimensions, there is no way to respect a custom
- // "client-area preservation strategy", so we must force a redraw to be safe.
- if (calc_valid_rects && ret == WVR_VALIDRECTS &&
- !EqualRect(&natural_rect, rect)) {
- ret = WVR_REDRAW;
- }
-
- return ret;
-}
« no previous file with comments | « chrome_frame/infobars/internal/displaced_window_manager.h ('k') | chrome_frame/infobars/internal/host_window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698