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

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

Issue 273073002: Changes code using Compositor to pass in ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tooltip on chromeos Created 6 years, 7 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
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/aura/window_tree_host_mac.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WINDOW_TREE_HOST_MAC_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_MAC_H_
6 #define UI_AURA_WINDOW_TREE_HOST_MAC_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_MAC_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #include "ui/aura/aura_export.h" 11 #include "ui/aura/aura_export.h"
12 #include "ui/aura/window_tree_host.h" 12 #include "ui/aura/window_tree_host.h"
13 #include "ui/gfx/insets.h" 13 #include "ui/gfx/insets.h"
14 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 15
16 namespace ui { 16 namespace ui {
17 class ContextFactory;
17 class MouseEvent; 18 class MouseEvent;
18 } 19 }
19 20
20 namespace aura { 21 namespace aura {
21 22
22 namespace internal { 23 namespace internal {
23 class TouchEventCalibrate; 24 class TouchEventCalibrate;
24 } 25 }
25 26
26 class AURA_EXPORT WindowTreeHostMac : public WindowTreeHost { 27 class AURA_EXPORT WindowTreeHostMac : public WindowTreeHost {
27 public: 28 public:
28 explicit WindowTreeHostMac(const gfx::Rect& bounds); 29 WindowTreeHostMac(const gfx::Rect& bounds,
30 ui::ContextFactory* context_factory);
29 virtual ~WindowTreeHostMac(); 31 virtual ~WindowTreeHostMac();
30 32
31 private: 33 private:
32 // WindowTreeHost Overrides. 34 // WindowTreeHost Overrides.
33 virtual ui::EventSource* GetEventSource() OVERRIDE; 35 virtual ui::EventSource* GetEventSource() OVERRIDE;
34 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; 36 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
35 virtual void Show() OVERRIDE; 37 virtual void Show() OVERRIDE;
36 virtual void Hide() OVERRIDE; 38 virtual void Hide() OVERRIDE;
37 virtual void ToggleFullScreen() OVERRIDE; 39 virtual void ToggleFullScreen() OVERRIDE;
38 virtual gfx::Rect GetBounds() const OVERRIDE; 40 virtual gfx::Rect GetBounds() const OVERRIDE;
(...skipping 13 matching lines...) Expand all
52 54
53 private: 55 private:
54 base::scoped_nsobject<NSWindow> window_; 56 base::scoped_nsobject<NSWindow> window_;
55 57
56 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMac); 58 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostMac);
57 }; 59 };
58 60
59 } // namespace aura 61 } // namespace aura
60 62
61 #endif // UI_AURA_WINDOW_TREE_HOST_MAC_H_ 63 #endif // UI_AURA_WINDOW_TREE_HOST_MAC_H_
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host.cc ('k') | ui/aura/window_tree_host_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698