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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host.h

Issue 1935883002: win: Fix black pixel artifact at right and bottom Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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
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_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Return the NativeTheme to use for |window|. WARNING: |window| may be NULL. 53 // Return the NativeTheme to use for |window|. WARNING: |window| may be NULL.
54 static ui::NativeTheme* GetNativeTheme(aura::Window* window); 54 static ui::NativeTheme* GetNativeTheme(aura::Window* window);
55 55
56 // Sets up resources needed before the WindowEventDispatcher has been created. 56 // Sets up resources needed before the WindowEventDispatcher has been created.
57 virtual void Init(aura::Window* content_window, 57 virtual void Init(aura::Window* content_window,
58 const Widget::InitParams& params) = 0; 58 const Widget::InitParams& params) = 0;
59 59
60 // Invoked once the DesktopNativeWidgetAura has been created. 60 // Invoked once the DesktopNativeWidgetAura has been created.
61 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0; 61 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0;
62 virtual void OnNativeWidgetInitDone() = 0;
62 63
63 // Creates and returns the Tooltip implementation to use. Return value is 64 // Creates and returns the Tooltip implementation to use. Return value is
64 // owned by DesktopNativeWidgetAura and lives as long as 65 // owned by DesktopNativeWidgetAura and lives as long as
65 // DesktopWindowTreeHost. 66 // DesktopWindowTreeHost.
66 virtual std::unique_ptr<corewm::Tooltip> CreateTooltip() = 0; 67 virtual std::unique_ptr<corewm::Tooltip> CreateTooltip() = 0;
67 68
68 // Creates and returns the DragDropClient implementation to use. Return value 69 // Creates and returns the DragDropClient implementation to use. Return value
69 // is owned by DesktopNativeWidgetAura and lives as long as 70 // is owned by DesktopNativeWidgetAura and lives as long as
70 // DesktopWindowTreeHost. 71 // DesktopWindowTreeHost.
71 virtual std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient( 72 virtual std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient(
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Returns true if the Widget supports translucency. 161 // Returns true if the Widget supports translucency.
161 virtual bool IsTranslucentWindowOpacitySupported() const = 0; 162 virtual bool IsTranslucentWindowOpacitySupported() const = 0;
162 163
163 // Called when the window's size constraints change. 164 // Called when the window's size constraints change.
164 virtual void SizeConstraintsChanged() = 0; 165 virtual void SizeConstraintsChanged() = 0;
165 }; 166 };
166 167
167 } // namespace views 168 } // namespace views
168 169
169 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 170 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698