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

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

Issue 2468093003: Makes Screen functions take a const gfx::NativeView (Closed)
Patch Set: merge Created 4 years, 1 month 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 | « ash/display/screen_ash.cc ('k') | blimp/engine/app/ui/blimp_screen.cc » ('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 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 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; 41 display::Display GetDisplayNearestWindow(
42 const gfx::NativeView view) const override;
42 display::Display GetDisplayNearestPoint( 43 display::Display GetDisplayNearestPoint(
43 const gfx::Point& point) const override; 44 const gfx::Point& point) const override;
44 display::Display GetDisplayMatching( 45 display::Display GetDisplayMatching(
45 const gfx::Rect& match_rect) const override; 46 const gfx::Rect& match_rect) const override;
46 display::Display GetPrimaryDisplay() const override; 47 display::Display GetPrimaryDisplay() const override;
47 void AddObserver(display::DisplayObserver* observer) override; 48 void AddObserver(display::DisplayObserver* observer) override;
48 void RemoveObserver(display::DisplayObserver* observer) override; 49 void RemoveObserver(display::DisplayObserver* observer) override;
49 50
50 private: 51 private:
51 aura::WindowTreeHost* window_tree_host_; 52 aura::WindowTreeHost* window_tree_host_;
52 display::Display display_; 53 display::Display display_;
53 base::ObserverList<display::DisplayObserver> observers_; 54 base::ObserverList<display::DisplayObserver> observers_;
54 DISALLOW_COPY_AND_ASSIGN(BlimpScreen); 55 DISALLOW_COPY_AND_ASSIGN(BlimpScreen);
55 }; 56 };
56 57
57 } // namespace engine 58 } // namespace engine
58 } // namespace blimp 59 } // namespace blimp
59 60
60 #endif // BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_ 61 #endif // BLIMP_ENGINE_APP_UI_BLIMP_SCREEN_H_
OLDNEW
« no previous file with comments | « ash/display/screen_ash.cc ('k') | blimp/engine/app/ui/blimp_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698