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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)
Patch Set: WIP Created 3 years, 8 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 (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 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 } 338 }
339 339
340 void DesktopWindowTreeHostWin::Maximize() { 340 void DesktopWindowTreeHostWin::Maximize() {
341 message_handler_->Maximize(); 341 message_handler_->Maximize();
342 } 342 }
343 343
344 void DesktopWindowTreeHostWin::Minimize() { 344 void DesktopWindowTreeHostWin::Minimize() {
345 message_handler_->Minimize(); 345 message_handler_->Minimize();
346 } 346 }
347 347
348 void DesktopWindowTreeHostWin::Pin(bool trusted) {
349 // We only use Pin() for ARC++ window on Chromebook, so we don't need
350 // implement it for Windows.
351 NOTIMPLEMENTED();
352 }
353
348 void DesktopWindowTreeHostWin::Restore() { 354 void DesktopWindowTreeHostWin::Restore() {
349 message_handler_->Restore(); 355 message_handler_->Restore();
350 } 356 }
351 357
352 bool DesktopWindowTreeHostWin::IsMaximized() const { 358 bool DesktopWindowTreeHostWin::IsMaximized() const {
353 return message_handler_->IsMaximized(); 359 return message_handler_->IsMaximized();
354 } 360 }
355 361
356 bool DesktopWindowTreeHostWin::IsMinimized() const { 362 bool DesktopWindowTreeHostWin::IsMinimized() const {
357 return message_handler_->IsMinimized(); 363 return message_handler_->IsMinimized();
358 } 364 }
359 365
366 bool DesktopWindowTreeHostWin::IsPinned() const {
367 return false;
368 }
369
360 bool DesktopWindowTreeHostWin::HasCapture() const { 370 bool DesktopWindowTreeHostWin::HasCapture() const {
361 return message_handler_->HasCapture(); 371 return message_handler_->HasCapture();
362 } 372 }
363 373
364 void DesktopWindowTreeHostWin::SetAlwaysOnTop(bool always_on_top) { 374 void DesktopWindowTreeHostWin::SetAlwaysOnTop(bool always_on_top) {
365 message_handler_->SetAlwaysOnTop(always_on_top); 375 message_handler_->SetAlwaysOnTop(always_on_top);
366 } 376 }
367 377
368 bool DesktopWindowTreeHostWin::IsAlwaysOnTop() const { 378 bool DesktopWindowTreeHostWin::IsAlwaysOnTop() const {
369 return message_handler_->IsAlwaysOnTop(); 379 return message_handler_->IsAlwaysOnTop();
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 1006
997 // static 1007 // static
998 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 1008 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
999 internal::NativeWidgetDelegate* native_widget_delegate, 1009 internal::NativeWidgetDelegate* native_widget_delegate,
1000 DesktopNativeWidgetAura* desktop_native_widget_aura) { 1010 DesktopNativeWidgetAura* desktop_native_widget_aura) {
1001 return new DesktopWindowTreeHostWin(native_widget_delegate, 1011 return new DesktopWindowTreeHostWin(native_widget_delegate,
1002 desktop_native_widget_aura); 1012 desktop_native_widget_aura);
1003 } 1013 }
1004 1014
1005 } // namespace views 1015 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698