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

Side by Side Diff: extensions/browser/api/capture_web_contents_function.h

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 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_CAPTURE_WEB_CONTENTS_FUNCTION_H_ 5 #ifndef EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_H_
6 #define EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_H_ 6 #define EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_H_
7 7
8 #include "content/public/browser/readback_types.h" 8 #include "content/public/browser/readback_types.h"
9 #include "extensions/browser/extension_function.h" 9 #include "extensions/browser/extension_function.h"
10 #include "extensions/common/api/extension_types.h" 10 #include "extensions/common/api/extension_types.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 content::ReadbackResponse response); 47 content::ReadbackResponse response);
48 void OnCaptureSuccess(const SkBitmap& bitmap); 48 void OnCaptureSuccess(const SkBitmap& bitmap);
49 49
50 // |context_id_| is the ID used to find the relevant WebContents. In the 50 // |context_id_| is the ID used to find the relevant WebContents. In the
51 // |tabs.captureVisibleTab()| api, this represents the window-id, and in the 51 // |tabs.captureVisibleTab()| api, this represents the window-id, and in the
52 // |webview.captureVisibleRegion()| api, this represents the instance-id of 52 // |webview.captureVisibleRegion()| api, this represents the instance-id of
53 // the guest. 53 // the guest.
54 int context_id_; 54 int context_id_;
55 55
56 // The format (JPEG vs PNG) of the resulting image. Set in RunAsync(). 56 // The format (JPEG vs PNG) of the resulting image. Set in RunAsync().
57 ImageDetails::Format image_format_; 57 core_api::extension_types::ImageDetailsFormat image_format_;
58 58
59 // Quality setting to use when encoding jpegs. Set in RunAsync(). 59 // Quality setting to use when encoding jpegs. Set in RunAsync().
60 int image_quality_; 60 int image_quality_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(CaptureWebContentsFunction); 62 DISALLOW_COPY_AND_ASSIGN(CaptureWebContentsFunction);
63 }; 63 };
64 64
65 } // namespace extensions 65 } // namespace extensions
66 66
67 #endif // EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_H_ 67 #endif // EXTENSIONS_BROWSER_API_CAPTURE_WEB_CONTENTS_FUNCTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698