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

Side by Side Diff: ui/views/win/hwnd_message_handler_delegate.h

Issue 574283002: [Win] Convert min|max window size to screen pixels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | no next file » | 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) 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_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
7 7
8 #include "ui/views/views_export.h" 8 #include "ui/views/views_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 virtual int GetNonClientComponent(const gfx::Point& point) const = 0; 58 virtual int GetNonClientComponent(const gfx::Point& point) const = 0;
59 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* mask) = 0; 59 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* mask) = 0;
60 60
61 // Returns true if the delegate modifies |insets| to define a custom client 61 // Returns true if the delegate modifies |insets| to define a custom client
62 // area for the window, false if the default client area should be used. If 62 // area for the window, false if the default client area should be used. If
63 // false is returned, |insets| is not modified. 63 // false is returned, |insets| is not modified.
64 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0; 64 virtual bool GetClientAreaInsets(gfx::Insets* insets) const = 0;
65 65
66 // Returns the minimum and maximum size the window can be resized to by the 66 // Returns the minimum and maximum size the window can be resized to by the
67 // user. 67 // user. Units are screen pixels.
sky 2014/09/17 15:44:26 The hope is pixels are used vary sparingly. Can th
jackhou1 2014/09/18 03:36:42 Done.
68 virtual void GetMinMaxSize(gfx::Size* min_size, 68 virtual void GetMinMaxSize(gfx::Size* min_size,
69 gfx::Size* max_size) const = 0; 69 gfx::Size* max_size) const = 0;
70 70
71 // Returns the current size of the RootView. 71 // Returns the current size of the RootView.
72 virtual gfx::Size GetRootViewSize() const = 0; 72 virtual gfx::Size GetRootViewSize() const = 0;
73 73
74 virtual void ResetWindowControls() = 0; 74 virtual void ResetWindowControls() = 0;
75 75
76 virtual void PaintLayeredWindow(gfx::Canvas* canvas) = 0; 76 virtual void PaintLayeredWindow(gfx::Canvas* canvas) = 0;
77 77
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Called when the window size is about to change. 231 // Called when the window size is about to change.
232 virtual void HandleWindowSizeChanging() = 0; 232 virtual void HandleWindowSizeChanging() = 0;
233 233
234 protected: 234 protected:
235 virtual ~HWNDMessageHandlerDelegate() {} 235 virtual ~HWNDMessageHandlerDelegate() {}
236 }; 236 };
237 237
238 } // namespace views 238 } // namespace views
239 239
240 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_ 240 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698