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

Side by Side Diff: extensions/browser/api/system_display/display_info_provider.h

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_ 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
6 #define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_ 6 #define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
7 7
8 #include <stdint.h>
9
8 #include <string> 10 #include <string>
9 #include <vector> 11 #include <vector>
10 12
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
13 15
14 namespace gfx { 16 namespace gfx {
15 class Display; 17 class Display;
16 class Screen; 18 class Screen;
17 } 19 }
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Get display information. 59 // Get display information.
58 virtual DisplayInfo GetAllDisplaysInfo(); 60 virtual DisplayInfo GetAllDisplaysInfo();
59 61
60 protected: 62 protected:
61 DisplayInfoProvider(); 63 DisplayInfoProvider();
62 64
63 // Create a DisplayUnitInfo from a gfx::Display for implementations of 65 // Create a DisplayUnitInfo from a gfx::Display for implementations of
64 // GetAllDisplaysInfo() 66 // GetAllDisplaysInfo()
65 static api::system_display::DisplayUnitInfo* CreateDisplayUnitInfo( 67 static api::system_display::DisplayUnitInfo* CreateDisplayUnitInfo(
66 const gfx::Display& display, 68 const gfx::Display& display,
67 int64 primary_display_id); 69 int64_t primary_display_id);
68 70
69 private: 71 private:
70 static DisplayInfoProvider* Create(); 72 static DisplayInfoProvider* Create();
71 73
72 // Update the content of the |unit| obtained for |display| using 74 // Update the content of the |unit| obtained for |display| using
73 // platform specific method. 75 // platform specific method.
74 virtual void UpdateDisplayUnitInfoForPlatform( 76 virtual void UpdateDisplayUnitInfoForPlatform(
75 const gfx::Display& display, 77 const gfx::Display& display,
76 api::system_display::DisplayUnitInfo* unit) = 0; 78 api::system_display::DisplayUnitInfo* unit) = 0;
77 79
78 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProvider); 80 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProvider);
79 }; 81 };
80 82
81 } // namespace extensions 83 } // namespace extensions
82 84
83 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_ 85 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_DISPLAY_INFO_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698