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

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

Issue 8597010: Send fake event when event_type is set to exit menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use xdisplay_ Created 9 years, 1 month 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
« no previous file with comments | « ui/aura/desktop_host_linux.cc ('k') | ui/aura/desktop_host_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_DESKTOP_HOST_WIN_H_ 5 #ifndef UI_AURA_DESKTOP_HOST_WIN_H_
6 #define UI_AURA_DESKTOP_HOST_WIN_H_ 6 #define UI_AURA_DESKTOP_HOST_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/aura/desktop_host.h" 10 #include "ui/aura/desktop_host.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // DesktopHost: 23 // DesktopHost:
24 virtual void SetDesktop(Desktop* desktop) OVERRIDE; 24 virtual void SetDesktop(Desktop* desktop) OVERRIDE;
25 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 25 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
26 virtual void Show() OVERRIDE; 26 virtual void Show() OVERRIDE;
27 virtual void ToggleFullScreen() OVERRIDE; 27 virtual void ToggleFullScreen() OVERRIDE;
28 virtual gfx::Size GetSize() const OVERRIDE; 28 virtual gfx::Size GetSize() const OVERRIDE;
29 virtual void SetSize(const gfx::Size& size) OVERRIDE; 29 virtual void SetSize(const gfx::Size& size) OVERRIDE;
30 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 30 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
31 virtual gfx::Point QueryMouseLocation() OVERRIDE; 31 virtual gfx::Point QueryMouseLocation() OVERRIDE;
32 virtual void PostNativeEvent(const base::NativeEvent& native_event) OVERRIDE;
32 33
33 private: 34 private:
34 BEGIN_MSG_MAP_EX(DesktopHostWin) 35 BEGIN_MSG_MAP_EX(DesktopHostWin)
35 // Range handlers must go first! 36 // Range handlers must go first!
36 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 37 MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
37 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange) 38 MESSAGE_RANGE_HANDLER_EX(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK, OnMouseRange)
38 39
39 // Key events. 40 // Key events.
40 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent) 41 MESSAGE_HANDLER_EX(WM_KEYDOWN, OnKeyEvent)
41 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent) 42 MESSAGE_HANDLER_EX(WM_KEYUP, OnKeyEvent)
(...skipping 20 matching lines...) Expand all
62 RECT saved_window_rect_; 63 RECT saved_window_rect_;
63 DWORD saved_window_style_; 64 DWORD saved_window_style_;
64 DWORD saved_window_ex_style_; 65 DWORD saved_window_ex_style_;
65 66
66 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin); 67 DISALLOW_COPY_AND_ASSIGN(DesktopHostWin);
67 }; 68 };
68 69
69 } // namespace aura 70 } // namespace aura
70 71
71 #endif // UI_AURA_DESKTOP_HOST_WIN_H_ 72 #endif // UI_AURA_DESKTOP_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/aura/desktop_host_linux.cc ('k') | ui/aura/desktop_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698