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

Side by Side Diff: ui/aura/root_window_host_win.h

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_AURA_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/aura/root_window_host.h" 9 #include "ui/aura/root_window_host.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
(...skipping 28 matching lines...) Expand all
39 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE; 39 virtual void SetFocusWhenShown(bool focus_when_shown) OVERRIDE;
40 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds, 40 virtual bool CopyAreaToSkCanvas(const gfx::Rect& source_bounds,
41 const gfx::Point& dest_offset, 41 const gfx::Point& dest_offset,
42 SkCanvas* canvas) OVERRIDE; 42 SkCanvas* canvas) OVERRIDE;
43 virtual bool GrabSnapshot( 43 virtual bool GrabSnapshot(
44 const gfx::Rect& snapshot_bounds, 44 const gfx::Rect& snapshot_bounds,
45 std::vector<unsigned char>* png_representation) OVERRIDE; 45 std::vector<unsigned char>* png_representation) OVERRIDE;
46 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE; 46 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
47 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE; 47 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE;
48 virtual void PrepareForShutdown() OVERRIDE; 48 virtual void PrepareForShutdown() OVERRIDE;
49 virtual void SetHostWindowExpansion(const gfx::Rect& extra) OVERRIDE;
49 50
50 private: 51 private:
51 BEGIN_MSG_MAP_EX(RootWindowHostWin) 52 BEGIN_MSG_MAP_EX(RootWindowHostWin)
52 // Range handlers must go first! 53 // Range handlers must go first!
53 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 54 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
54 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) 55 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange)
55 56
56 // Mouse capture events. 57 // Mouse capture events.
57 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged) 58 MESSAGE_HANDLER_EX(WM_CAPTURECHANGED, OnCaptureChanged)
58 59
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Set true to let RootWindowHostWin use a popup window 98 // Set true to let RootWindowHostWin use a popup window
98 // with no frame/title so that the window size and test's 99 // with no frame/title so that the window size and test's
99 // expectations matches. 100 // expectations matches.
100 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use); 101 AURA_EXPORT void SetUsePopupAsRootWindowForTest(bool use);
101 102
102 } // namespace 103 } // namespace
103 104
104 } // namespace aura 105 } // namespace aura
105 106
106 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_ 107 #endif // UI_AURA_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698