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

Side by Side Diff: ui/views/view.cc

Issue 1746013002: Hide/show widget on Windows screen lock/unlock Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 4 years, 9 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/view.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.h » ('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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first.
6 6
7 #include "ui/views/view.h" 7 #include "ui/views/view.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1899 ViewHierarchyChanged(details); 1899 ViewHierarchyChanged(details);
1900 details.parent->needs_layout_ = true; 1900 details.parent->needs_layout_ = true;
1901 } 1901 }
1902 1902
1903 void View::PropagateNativeThemeChanged(const ui::NativeTheme* theme) { 1903 void View::PropagateNativeThemeChanged(const ui::NativeTheme* theme) {
1904 for (int i = 0, count = child_count(); i < count; ++i) 1904 for (int i = 0, count = child_count(); i < count; ++i)
1905 child_at(i)->PropagateNativeThemeChanged(theme); 1905 child_at(i)->PropagateNativeThemeChanged(theme);
1906 OnNativeThemeChanged(theme); 1906 OnNativeThemeChanged(theme);
1907 } 1907 }
1908 1908
1909 void View::PropagateSoftVisibilityChanged(bool visible) {
1910 for (int i = 0, count = child_count(); i < count; ++i)
1911 child_at(i)->PropagateSoftVisibilityChanged(visible);
1912 OnSoftVisibilityChanged(visible);
1913 }
1914
1909 // Size and disposition -------------------------------------------------------- 1915 // Size and disposition --------------------------------------------------------
1910 1916
1911 void View::PropagateVisibilityNotifications(View* start, bool is_visible) { 1917 void View::PropagateVisibilityNotifications(View* start, bool is_visible) {
1912 for (int i = 0, count = child_count(); i < count; ++i) 1918 for (int i = 0, count = child_count(); i < count; ++i)
1913 child_at(i)->PropagateVisibilityNotifications(start, is_visible); 1919 child_at(i)->PropagateVisibilityNotifications(start, is_visible);
1914 VisibilityChangedImpl(start, is_visible); 1920 VisibilityChangedImpl(start, is_visible);
1915 } 1921 }
1916 1922
1917 void View::VisibilityChangedImpl(View* starting_from, bool is_visible) { 1923 void View::VisibilityChangedImpl(View* starting_from, bool is_visible) {
1918 VisibilityChanged(starting_from, is_visible); 1924 VisibilityChanged(starting_from, is_visible);
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 // Message the RootView to do the drag and drop. That way if we're removed 2432 // Message the RootView to do the drag and drop. That way if we're removed
2427 // the RootView can detect it and avoid calling us back. 2433 // the RootView can detect it and avoid calling us back.
2428 gfx::Point widget_location(event.location()); 2434 gfx::Point widget_location(event.location());
2429 ConvertPointToWidget(this, &widget_location); 2435 ConvertPointToWidget(this, &widget_location);
2430 widget->RunShellDrag(this, data, widget_location, drag_operations, source); 2436 widget->RunShellDrag(this, data, widget_location, drag_operations, source);
2431 // WARNING: we may have been deleted. 2437 // WARNING: we may have been deleted.
2432 return true; 2438 return true;
2433 } 2439 }
2434 2440
2435 } // namespace views 2441 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/view.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698