refactor: rename the atom namespace to electron
This commit is contained in:
parent
8c4496a9c9
commit
34c4c8d508
531 changed files with 1456 additions and 1428 deletions
|
@ -20,7 +20,7 @@
|
|||
#include "skia/ext/skia_utils_win.h"
|
||||
#endif
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
LayeredWindowUpdater::LayeredWindowUpdater(
|
||||
viz::mojom::LayeredWindowUpdaterRequest request,
|
||||
|
@ -119,4 +119,4 @@ void OffScreenHostDisplayClient::CreateLayeredWindowUpdater(
|
|||
layered_window_updater_->SetActive(active_);
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#include "third_party/skia/include/core/SkCanvas.h"
|
||||
#include "ui/gfx/native_widget_types.h"
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
typedef base::Callback<void(const gfx::Rect&, const SkBitmap&)> OnPaintCallback;
|
||||
|
||||
|
@ -72,6 +72,6 @@ class OffScreenHostDisplayClient : public viz::HostDisplayClient {
|
|||
DISALLOW_COPY_AND_ASSIGN(OffScreenHostDisplayClient);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_BROWSER_OSR_OSR_HOST_DISPLAY_CLIENT_H_
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <IOSurface/IOSurface.h>
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
void OffScreenHostDisplayClient::OnDisplayReceivedCALayerParams(
|
||||
const gfx::CALayerParams& ca_layer_params) {
|
||||
|
@ -32,4 +32,4 @@ void OffScreenHostDisplayClient::OnDisplayReceivedCALayerParams(
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
#include "ui/gfx/skbitmap_operations.h"
|
||||
#include "ui/latency/latency_info.h"
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
namespace {
|
||||
|
||||
|
@ -1175,4 +1175,4 @@ void OffScreenRenderWidgetHostView::UpdateBackgroundColorFromRenderer(
|
|||
GetRootLayer()->SetColor(color);
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace content {
|
|||
class CursorManager;
|
||||
} // namespace content
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
class AtomCopyFrameGenerator;
|
||||
class AtomBeginFrameTimer;
|
||||
|
@ -318,6 +318,6 @@ class OffScreenRenderWidgetHostView : public content::RenderWidgetHostViewBase,
|
|||
DISALLOW_COPY_AND_ASSIGN(OffScreenRenderWidgetHostView);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_BROWSER_OSR_OSR_RENDER_WIDGET_HOST_VIEW_H_
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "shell/browser/osr/osr_render_widget_host_view.h"
|
||||
#include "ui/gfx/skbitmap_operations.h"
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
OffScreenVideoConsumer::OffScreenVideoConsumer(
|
||||
OffScreenRenderWidgetHostView* view,
|
||||
|
@ -134,4 +134,4 @@ bool OffScreenVideoConsumer::CheckContentRect(const gfx::Rect& content_rect) {
|
|||
return true;
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include "base/memory/weak_ptr.h"
|
||||
#include "components/viz/host/client_frame_sink_video_capturer.h"
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
class OffScreenRenderWidgetHostView;
|
||||
|
||||
|
@ -49,6 +49,6 @@ class OffScreenVideoConsumer : public viz::mojom::FrameSinkVideoConsumer {
|
|||
DISALLOW_COPY_AND_ASSIGN(OffScreenVideoConsumer);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_BROWSER_OSR_OSR_VIDEO_CONSUMER_H_
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include "shell/browser/osr/osr_view_proxy.h"
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
OffscreenViewProxy::OffscreenViewProxy(views::View* view) : view_(view) {
|
||||
view_bitmap_.reset(new SkBitmap);
|
||||
|
@ -53,4 +53,4 @@ void OffscreenViewProxy::OnEvent(ui::Event* event) {
|
|||
}
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#include "ui/gfx/geometry/rect.h"
|
||||
#include "ui/views/view.h"
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
class OffscreenViewProxy;
|
||||
|
||||
|
@ -50,6 +50,6 @@ class OffscreenViewProxy {
|
|||
OffscreenViewProxyObserver* observer_ = nullptr;
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_BROWSER_OSR_OSR_VIEW_PROXY_H_
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include "third_party/blink/public/platform/web_screen_info.h"
|
||||
#include "ui/display/screen.h"
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
OffScreenWebContentsView::OffScreenWebContentsView(
|
||||
bool transparent,
|
||||
|
@ -222,4 +222,4 @@ OffScreenRenderWidgetHostView* OffScreenWebContentsView::GetView() const {
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
|
|
@ -21,7 +21,7 @@ class OffScreenView;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
class OffScreenWebContentsView : public content::WebContentsView,
|
||||
public content::RenderViewHostDelegateView,
|
||||
|
@ -107,6 +107,6 @@ class OffScreenWebContentsView : public content::WebContentsView,
|
|||
#endif
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_BROWSER_OSR_OSR_WEB_CONTENTS_VIEW_H_
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
@end
|
||||
|
||||
namespace atom {
|
||||
namespace electron {
|
||||
|
||||
gfx::NativeView OffScreenWebContentsView::GetNativeView() const {
|
||||
return offScreenView_;
|
||||
|
@ -51,4 +51,4 @@ void OffScreenWebContentsView::PlatformDestroy() {
|
|||
[offScreenView_ release];
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
} // namespace electron
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue