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

Side by Side Diff: blimp/engine/app/ui/blimp_screen.h

Issue 2361283002: Add GetDisplayWithDisplayId to display::Screen. (Closed)
Patch Set: test Created 4 years, 3 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 #ifndef BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_ 5 #ifndef BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_
6 #define BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_ 6 #define BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Updates the size reported by the primary display. 32 // Updates the size reported by the primary display.
33 void UpdateDisplayScaleAndSize(float scale, const gfx::Size& size); 33 void UpdateDisplayScaleAndSize(float scale, const gfx::Size& size);
34 34
35 // display::Screen implementation. 35 // display::Screen implementation.
36 gfx::Point GetCursorScreenPoint() override; 36 gfx::Point GetCursorScreenPoint() override;
37 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 37 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
38 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 38 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
39 int GetNumDisplays() const override; 39 int GetNumDisplays() const override;
40 std::vector<display::Display> GetAllDisplays() const override; 40 std::vector<display::Display> GetAllDisplays() const override;
41 bool GetDisplayWithDisplayId(int64_t display_id,
42 display::Display* display) const override;
41 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; 43 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override;
42 display::Display GetDisplayNearestPoint( 44 display::Display GetDisplayNearestPoint(
43 const gfx::Point& point) const override; 45 const gfx::Point& point) const override;
44 display::Display GetDisplayMatching( 46 display::Display GetDisplayMatching(
45 const gfx::Rect& match_rect) const override; 47 const gfx::Rect& match_rect) const override;
46 display::Display GetPrimaryDisplay() const override; 48 display::Display GetPrimaryDisplay() const override;
47 void AddObserver(display::DisplayObserver* observer) override; 49 void AddObserver(display::DisplayObserver* observer) override;
48 void RemoveObserver(display::DisplayObserver* observer) override; 50 void RemoveObserver(display::DisplayObserver* observer) override;
49 51
50 private: 52 private:
51 aura::WindowTreeHost* window_tree_host_; 53 aura::WindowTreeHost* window_tree_host_;
52 display::Display display_; 54 display::Display display_;
53 base::ObserverList<display::DisplayObserver> observers_; 55 base::ObserverList<display::DisplayObserver> observers_;
54 DISALLOW_COPY_AND_ASSIGN(BlimpScreen); 56 DISALLOW_COPY_AND_ASSIGN(BlimpScreen);
55 }; 57 };
56 58
57 } // namespace engine 59 } // namespace engine
58 } // namespace blimp 60 } // namespace blimp
59 61
60 #endif // BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_ 62 #endif // BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698