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

Side by Side Diff: ui/gfx/screen.h

Issue 11146023: Work on separate browser contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another busted command line flag Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/gfx/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 (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 #ifndef UI_GFX_SCREEN_H_ 5 #ifndef UI_GFX_SCREEN_H_
6 #define UI_GFX_SCREEN_H_ 6 #define UI_GFX_SCREEN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/base/ui_export.h" 9 #include "ui/base/ui_export.h"
10 #include "ui/gfx/display.h" 10 #include "ui/gfx/display.h"
(...skipping 12 matching lines...) Expand all
23 static Screen* GetScreenFor(NativeView view); 23 static Screen* GetScreenFor(NativeView view);
24 24
25 // Returns the SCREEN_TYPE_NATIVE Screen. This should be used with caution, 25 // Returns the SCREEN_TYPE_NATIVE Screen. This should be used with caution,
26 // as it is likely to be incorrect for code that runs on Windows. 26 // as it is likely to be incorrect for code that runs on Windows.
27 static Screen* GetNativeScreen(); 27 static Screen* GetNativeScreen();
28 28
29 // Sets the global screen for a particular screen type. Only the _NATIVE 29 // Sets the global screen for a particular screen type. Only the _NATIVE
30 // ScreenType must be provided. 30 // ScreenType must be provided.
31 static void SetScreenInstance(ScreenType type, Screen* instance); 31 static void SetScreenInstance(ScreenType type, Screen* instance);
32 32
33 // Returns the global screen for a particular type. Types other than _NATIVE
34 // may be NULL.
35 static Screen* GetScreenByType(ScreenType type);
36
33 // Sets the global ScreenTypeDelegate. May be left unset if the platform 37 // Sets the global ScreenTypeDelegate. May be left unset if the platform
34 // uses only the _NATIVE ScreenType. 38 // uses only the _NATIVE ScreenType.
35 static void SetScreenTypeDelegate(ScreenTypeDelegate* delegate); 39 static void SetScreenTypeDelegate(ScreenTypeDelegate* delegate);
36 40
37 Screen(); 41 Screen();
38 virtual ~Screen(); 42 virtual ~Screen();
39 43
40 // Returns true if DIP is enabled. 44 // Returns true if DIP is enabled.
41 virtual bool IsDIPEnabled() = 0; 45 virtual bool IsDIPEnabled() = 0;
42 46
(...skipping 24 matching lines...) Expand all
67 71
68 private: 72 private:
69 DISALLOW_COPY_AND_ASSIGN(Screen); 73 DISALLOW_COPY_AND_ASSIGN(Screen);
70 }; 74 };
71 75
72 Screen* CreateNativeScreen(); 76 Screen* CreateNativeScreen();
73 77
74 } // namespace gfx 78 } // namespace gfx
75 79
76 #endif // UI_GFX_SCREEN_H_ 80 #endif // UI_GFX_SCREEN_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_helper.cc ('k') | ui/gfx/screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698