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

Side by Side Diff: services/ui/public/cpp/window.cc

Issue 2523723002: Update display::Display::kInvalidDisplayID constant. (Closed)
Patch Set: Fix includes. Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "services/ui/public/cpp/window.h" 5 #include "services/ui/public/cpp/window.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "services/ui/common/transient_window_utils.h" 15 #include "services/ui/common/transient_window_utils.h"
16 #include "services/ui/public/cpp/property_type_converters.h" 16 #include "services/ui/public/cpp/property_type_converters.h"
17 #include "services/ui/public/cpp/surface_id_handler.h" 17 #include "services/ui/public/cpp/surface_id_handler.h"
18 #include "services/ui/public/cpp/window_compositor_frame_sink.h" 18 #include "services/ui/public/cpp/window_compositor_frame_sink.h"
19 #include "services/ui/public/cpp/window_observer.h" 19 #include "services/ui/public/cpp/window_observer.h"
20 #include "services/ui/public/cpp/window_private.h" 20 #include "services/ui/public/cpp/window_private.h"
21 #include "services/ui/public/cpp/window_property.h" 21 #include "services/ui/public/cpp/window_property.h"
22 #include "services/ui/public/cpp/window_tracker.h" 22 #include "services/ui/public/cpp/window_tracker.h"
23 #include "services/ui/public/cpp/window_tree_client.h" 23 #include "services/ui/public/cpp/window_tree_client.h"
24 #include "services/ui/public/interfaces/window_manager.mojom.h" 24 #include "services/ui/public/interfaces/window_manager.mojom.h"
25 #include "ui/display/display.h" 25 #include "ui/display/display.h"
26 #include "ui/display/types/display_constants.h"
26 #include "ui/gfx/geometry/rect.h" 27 #include "ui/gfx/geometry/rect.h"
27 #include "ui/gfx/geometry/size.h" 28 #include "ui/gfx/geometry/size.h"
28 29
29 namespace ui { 30 namespace ui {
30 31
31 namespace { 32 namespace {
32 33
33 void NotifyWindowTreeChangeAtReceiver( 34 void NotifyWindowTreeChangeAtReceiver(
34 Window* receiver, 35 Window* receiver,
35 const WindowObserver::TreeChangeParams& params, 36 const WindowObserver::TreeChangeParams& params,
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 parent_(nullptr), 593 parent_(nullptr),
593 stacking_target_(nullptr), 594 stacking_target_(nullptr),
594 transient_parent_(nullptr), 595 transient_parent_(nullptr),
595 is_modal_(false), 596 is_modal_(false),
596 // Matches aura, see aura::Window for details. 597 // Matches aura, see aura::Window for details.
597 observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY), 598 observers_(base::ObserverList<WindowObserver>::NOTIFY_EXISTING_ONLY),
598 input_event_handler_(nullptr), 599 input_event_handler_(nullptr),
599 surface_id_handler_(nullptr), 600 surface_id_handler_(nullptr),
600 visible_(false), 601 visible_(false),
601 opacity_(1.0f), 602 opacity_(1.0f),
602 display_id_(display::Display::kInvalidDisplayID), 603 display_id_(display::kInvalidDisplayId),
603 cursor_id_(mojom::Cursor::CURSOR_NULL), 604 cursor_id_(mojom::Cursor::CURSOR_NULL),
604 parent_drawn_(false) {} 605 parent_drawn_(false) {}
605 606
606 void Window::SetSharedPropertyInternal(const std::string& name, 607 void Window::SetSharedPropertyInternal(const std::string& name,
607 const std::vector<uint8_t>* value) { 608 const std::vector<uint8_t>* value) {
608 if (!WasCreatedByThisClientOrIsRoot(this)) 609 if (!WasCreatedByThisClientOrIsRoot(this))
609 return; 610 return;
610 611
611 if (client_) { 612 if (client_) {
612 base::Optional<std::vector<uint8_t>> transport_value; 613 base::Optional<std::vector<uint8_t>> transport_value;
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 notifier->NotifyWindowReordered(); 965 notifier->NotifyWindowReordered();
965 966
966 return true; 967 return true;
967 } 968 }
968 969
969 // static 970 // static
970 Window** Window::GetStackingTarget(Window* window) { 971 Window** Window::GetStackingTarget(Window* window) {
971 return &window->stacking_target_; 972 return &window->stacking_target_;
972 } 973 }
973 } // namespace ui 974 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/display/platform_screen_ozone.cc ('k') | services/ui/ws/platform_display_init_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698