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

Side by Side Diff: ui/views/mus/native_widget_mus.cc

Issue 2158653002: Linux UI: Add IsVisibleOnAllWorkspaces() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add more mac impls Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ui/views/mus/native_widget_mus.h" 5 #include "ui/views/mus/native_widget_mus.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 window_->HasSharedProperty( 1054 window_->HasSharedProperty(
1055 ui::mojom::WindowManager::kAlwaysOnTop_Property) && 1055 ui::mojom::WindowManager::kAlwaysOnTop_Property) &&
1056 window_->GetSharedProperty<bool>( 1056 window_->GetSharedProperty<bool>(
1057 ui::mojom::WindowManager::kAlwaysOnTop_Property); 1057 ui::mojom::WindowManager::kAlwaysOnTop_Property);
1058 } 1058 }
1059 1059
1060 void NativeWidgetMus::SetVisibleOnAllWorkspaces(bool always_visible) { 1060 void NativeWidgetMus::SetVisibleOnAllWorkspaces(bool always_visible) {
1061 // Not needed for chromeos. 1061 // Not needed for chromeos.
1062 } 1062 }
1063 1063
1064 bool NativeWidgetMus::IsVisibleOnAllWorkspaces() const {
1065 return false;
1066 }
1067
1064 void NativeWidgetMus::Maximize() { 1068 void NativeWidgetMus::Maximize() {
1065 SetShowState(ui::mojom::ShowState::MAXIMIZED); 1069 SetShowState(ui::mojom::ShowState::MAXIMIZED);
1066 } 1070 }
1067 1071
1068 void NativeWidgetMus::Minimize() { 1072 void NativeWidgetMus::Minimize() {
1069 SetShowState(ui::mojom::ShowState::MINIMIZED); 1073 SetShowState(ui::mojom::ShowState::MINIMIZED);
1070 } 1074 }
1071 1075
1072 bool NativeWidgetMus::IsMaximized() const { 1076 bool NativeWidgetMus::IsMaximized() const {
1073 return mus_window_observer_ && 1077 return mus_window_observer_ &&
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1434 1438
1435 gfx::Path mask_path; 1439 gfx::Path mask_path;
1436 native_widget_delegate_->GetHitTestMask(&mask_path); 1440 native_widget_delegate_->GetHitTestMask(&mask_path);
1437 // TODO(jamescook): Use the full path for the mask. 1441 // TODO(jamescook): Use the full path for the mask.
1438 gfx::Rect mask_rect = 1442 gfx::Rect mask_rect =
1439 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds())); 1443 gfx::ToEnclosingRect(gfx::SkRectToRectF(mask_path.getBounds()));
1440 window_->SetHitTestMask(mask_rect); 1444 window_->SetHitTestMask(mask_rect);
1441 } 1445 }
1442 1446
1443 } // namespace views 1447 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698