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

Side by Side Diff: chrome_frame/infobars/internal/host_window_manager.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_FRAME_INFOBARS_INTERNAL_HOST_WINDOW_MANAGER_H_
6 #define CHROME_FRAME_INFOBARS_INTERNAL_HOST_WINDOW_MANAGER_H_
7
8 #include "base/basictypes.h"
9 #include "chrome_frame/infobars/internal/subclassing_window_with_delegate.h"
10
11 class DisplacedWindowManager;
12
13 // HostWindowManager observes the HWND passed to Initialize and:
14 // 1) Monitors the lifecycle of a specific child window (as identified by
15 // FindDisplacedWindow).
16 // 2) Intercepts NCCALCSIZE events on the child window, allowing the client to
17 // modify the child window's requested dimensions.
18 // 3) Allows the client to request a recalculation of the child window's
19 // dimensions (resulting in a callback as in [2]).
20 //
21 // See documentation of SubclasingWindowWithDelegate for further information.
22 class HostWindowManager
23 : public SubclassingWindowWithDelegate<HostWindowManager> {
24 public:
25 HostWindowManager();
26 virtual ~HostWindowManager();
27
28 // Triggers an immediate re-evaluation of the dimensions of the displaced
29 // window. Delegate::AdjustDisplacedWindowDimensions will be called with the
30 // natural dimensions of the displaced window.
31 void UpdateLayout();
32
33 private:
34 class DisplacedWindowDelegate;
35 friend class DisplacedWindowDelegate;
36
37 // Finds the window to be displaced and instantiate a DisplacedWindowManager
38 // for it if one does not already exist. Returns true if
39 // displaced_window_manager_ is non-NULL at the end of the call.
40 bool FindDisplacedWindow(HWND old_window);
41
42 // Subclasses and observes changes to the displaced window.
43 DisplacedWindowManager* displaced_window_manager_;
44
45 DISALLOW_COPY_AND_ASSIGN(HostWindowManager);
46 }; // class HostWindowManager
47
48 #endif // CHROME_FRAME_INFOBARS_INTERNAL_HOST_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome_frame/infobars/internal/displaced_window_manager.cc ('k') | chrome_frame/infobars/internal/host_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698