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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.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
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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include "ui/aura/window_tree_host.h" 8 #include "ui/aura/window_tree_host.h"
9 #include "ui/views/views_export.h" 9 #include "ui/views/views_export.h"
10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h" 10 #include "ui/views/widget/desktop_aura/desktop_window_tree_host.h"
(...skipping 28 matching lines...) Expand all
39 internal::NativeWidgetDelegate* native_widget_delegate, 39 internal::NativeWidgetDelegate* native_widget_delegate,
40 DesktopNativeWidgetAura* desktop_native_widget_aura); 40 DesktopNativeWidgetAura* desktop_native_widget_aura);
41 virtual ~DesktopWindowTreeHostWin(); 41 virtual ~DesktopWindowTreeHostWin();
42 42
43 // A way of converting an HWND into a content window. 43 // A way of converting an HWND into a content window.
44 static aura::Window* GetContentWindowForHWND(HWND hwnd); 44 static aura::Window* GetContentWindowForHWND(HWND hwnd);
45 45
46 protected: 46 protected:
47 // Overridden from DesktopWindowTreeHost: 47 // Overridden from DesktopWindowTreeHost:
48 virtual void Init(aura::Window* content_window, 48 virtual void Init(aura::Window* content_window,
49 const Widget::InitParams& params) OVERRIDE; 49 const Widget::InitParams& params,
50 ui::ContextFactory* context_factory) OVERRIDE;
50 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) OVERRIDE; 51 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) OVERRIDE;
51 virtual scoped_ptr<corewm::Tooltip> CreateTooltip() OVERRIDE; 52 virtual scoped_ptr<corewm::Tooltip> CreateTooltip() OVERRIDE;
52 virtual scoped_ptr<aura::client::DragDropClient> 53 virtual scoped_ptr<aura::client::DragDropClient>
53 CreateDragDropClient(DesktopNativeCursorManager* cursor_manager) OVERRIDE; 54 CreateDragDropClient(DesktopNativeCursorManager* cursor_manager) OVERRIDE;
54 virtual void Close() OVERRIDE; 55 virtual void Close() OVERRIDE;
55 virtual void CloseNow() OVERRIDE; 56 virtual void CloseNow() OVERRIDE;
56 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE; 57 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE;
57 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE; 58 virtual void ShowWindowWithState(ui::WindowShowState show_state) OVERRIDE;
58 virtual void ShowMaximizedWithBounds( 59 virtual void ShowMaximizedWithBounds(
59 const gfx::Rect& restored_bounds) OVERRIDE; 60 const gfx::Rect& restored_bounds) OVERRIDE;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 static bool is_cursor_visible_; 267 static bool is_cursor_visible_;
267 268
268 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; 269 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
269 270
270 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); 271 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
271 }; 272 };
272 273
273 } // namespace views 274 } // namespace views
274 275
275 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 276 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698