Line
Link Here
|
0 |
-- brackets-shell/appshell/appshell_extensions_platform.h |
0 |
++ brackets-shell/appshell/appshell_extensions_platform.h |
Lines 1-25
Link Here
|
1 |
/* |
1 |
/* |
2 |
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. |
2 |
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved. |
3 |
* |
3 |
* |
4 |
* Permission is hereby granted, free of charge, to any person obtaining a |
4 |
* Permission is hereby granted, free of charge, to any person obtaining a |
5 |
* copy of this software and associated documentation files (the "Software"), |
5 |
* copy of this software and associated documentation files (the "Software"), |
6 |
* to deal in the Software without restriction, including without limitation |
6 |
* to deal in the Software without restriction, including without limitation |
7 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
7 |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
8 |
* and/or sell copies of the Software, and to permit persons to whom the |
8 |
* and/or sell copies of the Software, and to permit persons to whom the |
9 |
* Software is furnished to do so, subject to the following conditions: |
9 |
* Software is furnished to do so, subject to the following conditions: |
10 |
* |
10 |
* |
11 |
* The above copyright notice and this permission notice shall be included in |
11 |
* The above copyright notice and this permission notice shall be included in |
12 |
* all copies or substantial portions of the Software. |
12 |
* all copies or substantial portions of the Software. |
13 |
* |
13 |
* |
14 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
14 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
15 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
15 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
16 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
16 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
17 |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
17 |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
18 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
18 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
19 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
19 |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 |
* DEALINGS IN THE SOFTWARE. |
20 |
* DEALINGS IN THE SOFTWARE. |
21 |
* |
21 |
* |
22 |
*/ |
22 |
*/ |
23 |
|
23 |
|
24 |
#pragma once |
24 |
#pragma once |
25 |
|
25 |
|
Lines 27-32
Link Here
|
27 |
#include "include/cef_v8.h" |
27 |
#include "include/cef_v8.h" |
28 |
|
28 |
|
29 |
#include <string> |
29 |
#include <string> |
|
|
30 |
|
31 |
#ifdef OS_LINUX |
32 |
#include <gtk/gtk.h> |
33 |
#endif |
30 |
|
34 |
|
31 |
// Extension error codes. These MUST be in sync with the error |
35 |
// Extension error codes. These MUST be in sync with the error |
32 |
// codes in appshell_extensions.js |
36 |
// codes in appshell_extensions.js |
Lines 73-80
Link Here
|
73 |
return gtk_widget_get_ancestor( |
77 |
return gtk_widget_get_ancestor( |
74 |
GTK_WIDGET(browser->GetHost()->GetWindowHandle()), |
78 |
GTK_WIDGET(browser->GetHost()->GetWindowHandle()), |
75 |
GTK_TYPE_VBOX); |
79 |
GTK_TYPE_VBOX); |
|
|
80 |
} |
76 |
inline int32 InstallCommandLineTools() { return ERR_CL_TOOLS_NOTSUPPORTED; } |
81 |
inline int32 InstallCommandLineTools() { return ERR_CL_TOOLS_NOTSUPPORTED; } |
77 |
} |
|
|
78 |
#endif |
82 |
#endif |
79 |
|
83 |
|
80 |
|
84 |
|
Lines 154-156
Link Here
|
154 |
int32 GetMenuPosition(CefRefPtr<CefBrowser> browser, const ExtensionString& commandId, ExtensionString& parentId, int& index); |
158 |
int32 GetMenuPosition(CefRefPtr<CefBrowser> browser, const ExtensionString& commandId, ExtensionString& parentId, int& index); |
155 |
|
159 |
|
156 |
void DragWindow(CefRefPtr<CefBrowser> browser); |
160 |
void DragWindow(CefRefPtr<CefBrowser> browser); |
|
|
161 |
|