23d4a252c6
* hore: Move draggable regions implementation from NativeBrowserView into InspectableWebContentsView The draggable regions implementation is related to WebView, so InspectableWebContentsView is a more appropriate place to put it there. Also, this refactoring will allow the subsequent extension of the WebContentsView API, which will eventually replace BrowserView API. * fix: Lint error * fix: Adjusted owner-window
30 lines
875 B
Objective-C
30 lines
875 B
Objective-C
// Copyright (c) 2017 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_
|
|
#define ELECTRON_SHELL_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#include <vector>
|
|
|
|
#include "base/mac/scoped_nsobject.h"
|
|
#include "shell/browser/native_browser_view.h"
|
|
|
|
namespace electron {
|
|
|
|
class NativeBrowserViewMac : public NativeBrowserView {
|
|
public:
|
|
explicit NativeBrowserViewMac(
|
|
InspectableWebContents* inspectable_web_contents);
|
|
~NativeBrowserViewMac() override;
|
|
|
|
void SetAutoResizeFlags(uint8_t flags) override;
|
|
void SetBounds(const gfx::Rect& bounds) override;
|
|
gfx::Rect GetBounds() override;
|
|
void SetBackgroundColor(SkColor color) override;
|
|
};
|
|
|
|
} // namespace electron
|
|
|
|
#endif // ELECTRON_SHELL_BROWSER_NATIVE_BROWSER_VIEW_MAC_H_
|