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

Side by Side Diff: ui/views/widget/native_widget_win.h

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change DEFICA call sites Created 8 years, 10 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_NATIVE_WIDGET_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 // Responds to the client area changing size, either at window creation time 497 // Responds to the client area changing size, either at window creation time
498 // or subsequently. 498 // or subsequently.
499 void ClientAreaSizeChanged(); 499 void ClientAreaSizeChanged();
500 500
501 // Resets the window region for the current widget bounds if necessary. 501 // Resets the window region for the current widget bounds if necessary.
502 // If |force| is true, the window region is reset to NULL even for native 502 // If |force| is true, the window region is reset to NULL even for native
503 // frame windows. 503 // frame windows.
504 void ResetWindowRegion(bool force); 504 void ResetWindowRegion(bool force);
505 505
506 // When removing the standard frame, tells the DWM how much glass we want on
507 // the edges. Currently hardcoded to 10px on all sides.
508 void UpdateDWMFrame();
509
506 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to 510 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to
507 // prevent frame flicker. DefWindowProc handling can otherwise render the 511 // prevent frame flicker. DefWindowProc handling can otherwise render the
508 // classic-look window title bar directly. 512 // classic-look window title bar directly.
509 LRESULT DefWindowProcWithRedrawLock(UINT message, 513 LRESULT DefWindowProcWithRedrawLock(UINT message,
510 WPARAM w_param, 514 WPARAM w_param,
511 LPARAM l_param); 515 LPARAM l_param);
512 516
513 // Stops ignoring SetWindowPos() requests (see below). 517 // Stops ignoring SetWindowPos() requests (see below).
514 void StopIgnoringPosChanges() { ignore_window_pos_changes_ = false; } 518 void StopIgnoringPosChanges() { ignore_window_pos_changes_ = false; }
515 519
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // This flag can be initialized and checked after certain operations (such as 650 // This flag can be initialized and checked after certain operations (such as
647 // DefWindowProc) to avoid stack-controlled NativeWidgetWin operations (such 651 // DefWindowProc) to avoid stack-controlled NativeWidgetWin operations (such
648 // as unlocking the Window with a ScopedRedrawLock) after Widget destruction. 652 // as unlocking the Window with a ScopedRedrawLock) after Widget destruction.
649 bool* destroyed_; 653 bool* destroyed_;
650 654
651 // True if the widget is going to have a non_client_view. We cache this value 655 // True if the widget is going to have a non_client_view. We cache this value
652 // rather than asking the Widget for the non_client_view so that we know at 656 // rather than asking the Widget for the non_client_view so that we know at
653 // Init time, before the Widget has created the NonClientView. 657 // Init time, before the Widget has created the NonClientView.
654 bool has_non_client_view_; 658 bool has_non_client_view_;
655 659
660 bool remove_standard_frame_;
661
656 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 662 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
657 }; 663 };
658 664
659 } // namespace views 665 } // namespace views
660 666
661 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 667 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698