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

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

Issue 9391024: Custom frame UI for platform apps on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: "Transparent" -> "Clickthrough", fix patchset 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
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | ui/views/widget/native_widget_win.cc » ('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 (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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 491
492 // Responds to the client area changing size, either at window creation time 492 // Responds to the client area changing size, either at window creation time
493 // or subsequently. 493 // or subsequently.
494 void ClientAreaSizeChanged(); 494 void ClientAreaSizeChanged();
495 495
496 // Resets the window region for the current widget bounds if necessary. 496 // Resets the window region for the current widget bounds if necessary.
497 // If |force| is true, the window region is reset to NULL even for native 497 // If |force| is true, the window region is reset to NULL even for native
498 // frame windows. 498 // frame windows.
499 void ResetWindowRegion(bool force); 499 void ResetWindowRegion(bool force);
500 500
501 // When removing the standard frame, tells the DWM how much glass we want on
502 // the edges. Currently hardcoded to 10px on all sides.
503 void UpdateDWMFrame();
504
501 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to 505 // Calls DefWindowProc, safely wrapping the call in a ScopedRedrawLock to
502 // prevent frame flicker. DefWindowProc handling can otherwise render the 506 // prevent frame flicker. DefWindowProc handling can otherwise render the
503 // classic-look window title bar directly. 507 // classic-look window title bar directly.
504 LRESULT DefWindowProcWithRedrawLock(UINT message, 508 LRESULT DefWindowProcWithRedrawLock(UINT message,
505 WPARAM w_param, 509 WPARAM w_param,
506 LPARAM l_param); 510 LPARAM l_param);
507 511
508 // Stops ignoring SetWindowPos() requests (see below). 512 // Stops ignoring SetWindowPos() requests (see below).
509 void StopIgnoringPosChanges() { ignore_window_pos_changes_ = false; } 513 void StopIgnoringPosChanges() { ignore_window_pos_changes_ = false; }
510 514
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 // This flag can be initialized and checked after certain operations (such as 642 // This flag can be initialized and checked after certain operations (such as
639 // DefWindowProc) to avoid stack-controlled NativeWidgetWin operations (such 643 // DefWindowProc) to avoid stack-controlled NativeWidgetWin operations (such
640 // as unlocking the Window with a ScopedRedrawLock) after Widget destruction. 644 // as unlocking the Window with a ScopedRedrawLock) after Widget destruction.
641 bool* destroyed_; 645 bool* destroyed_;
642 646
643 // True if the widget is going to have a non_client_view. We cache this value 647 // True if the widget is going to have a non_client_view. We cache this value
644 // rather than asking the Widget for the non_client_view so that we know at 648 // rather than asking the Widget for the non_client_view so that we know at
645 // Init time, before the Widget has created the NonClientView. 649 // Init time, before the Widget has created the NonClientView.
646 bool has_non_client_view_; 650 bool has_non_client_view_;
647 651
652 bool remove_standard_frame_;
653
648 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 654 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
649 }; 655 };
650 656
651 } // namespace views 657 } // namespace views
652 658
653 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 659 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | ui/views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698