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

Side by Side Diff: extensions/shell/browser/shell_screen.h

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: Created 3 years, 9 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 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 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SCREEN_H_ 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_SCREEN_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SCREEN_H_ 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_SCREEN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/aura/window_observer.h" 9 #include "ui/aura/window_observer.h"
10 #include "ui/display/display.h" 10 #include "ui/display/display.h"
(...skipping 23 matching lines...) Expand all
34 // WindowObserver overrides: 34 // WindowObserver overrides:
35 void OnWindowBoundsChanged(aura::Window* window, 35 void OnWindowBoundsChanged(aura::Window* window,
36 const gfx::Rect& old_bounds, 36 const gfx::Rect& old_bounds,
37 const gfx::Rect& new_bounds) override; 37 const gfx::Rect& new_bounds) override;
38 void OnWindowDestroying(aura::Window* window) override; 38 void OnWindowDestroying(aura::Window* window) override;
39 39
40 // display::Screen overrides: 40 // display::Screen overrides:
41 gfx::Point GetCursorScreenPoint() override; 41 gfx::Point GetCursorScreenPoint() override;
42 bool IsWindowUnderCursor(gfx::NativeWindow window) override; 42 bool IsWindowUnderCursor(gfx::NativeWindow window) override;
43 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override; 43 gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point) override;
44 display::Display GetDisplayNearestWindow(gfx::NativeView view) const override; 44 display::Display GetDisplayNearestWindow(
45 gfx::NativeWindow window) const override;
45 46
46 private: 47 private:
47 aura::WindowTreeHost* host_; // Not owned. 48 aura::WindowTreeHost* host_; // Not owned.
48 49
49 DISALLOW_COPY_AND_ASSIGN(ShellScreen); 50 DISALLOW_COPY_AND_ASSIGN(ShellScreen);
50 }; 51 };
51 52
52 } // namespace extensions 53 } // namespace extensions
53 54
54 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_SCREEN_H_ 55 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_SCREEN_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/system_display/system_display_apitest.cc ('k') | headless/lib/browser/headless_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698