fix: don't expose nativeTheme in the renderer process (#20139)
Exposing these in the renderer didn't make sense as they weren't backed by the same instance / value store. This API should be browser only especially now that we have nativeTheme.themeSource. Exposing in //common was a mistake from the beginning.
This commit is contained in:
parent
999f7df158
commit
660e566201
9 changed files with 11 additions and 14 deletions
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "shell/common/api/atom_api_native_theme.h"
|
||||
#include "shell/browser/api/atom_api_native_theme.h"
|
||||
|
||||
#include <string>
|
||||
|
|
@ -2,8 +2,8 @@
|
|||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SHELL_COMMON_API_ATOM_API_NATIVE_THEME_H_
|
||||
#define SHELL_COMMON_API_ATOM_API_NATIVE_THEME_H_
|
||||
#ifndef SHELL_BROWSER_API_ATOM_API_NATIVE_THEME_H_
|
||||
#define SHELL_BROWSER_API_ATOM_API_NATIVE_THEME_H_
|
||||
|
||||
#include "native_mate/handle.h"
|
||||
#include "shell/browser/api/event_emitter.h"
|
||||
|
@ -62,4 +62,4 @@ struct Converter<ui::NativeTheme::ThemeSource> {
|
|||
|
||||
} // namespace mate
|
||||
|
||||
#endif // SHELL_COMMON_API_ATOM_API_NATIVE_THEME_H_
|
||||
#endif // SHELL_BROWSER_API_ATOM_API_NATIVE_THEME_H_
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "shell/common/api/atom_api_native_theme.h"
|
||||
#include "shell/browser/api/atom_api_native_theme.h"
|
||||
|
||||
#include "base/mac/sdk_forward_declarations.h"
|
||||
#include "shell/browser/mac/atom_application.h"
|
Loading…
Add table
Add a link
Reference in a new issue