refactor: rename the atom directory to shell
This commit is contained in:
parent
4575a4aae3
commit
d7f07e8a80
631 changed files with 0 additions and 0 deletions
47
shell/browser/native_browser_view_views.h
Normal file
47
shell/browser/native_browser_view_views.h
Normal file
|
@ -0,0 +1,47 @@
|
|||
// 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 ATOM_BROWSER_NATIVE_BROWSER_VIEW_VIEWS_H_
|
||||
#define ATOM_BROWSER_NATIVE_BROWSER_VIEW_VIEWS_H_
|
||||
|
||||
#include "atom/browser/native_browser_view.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
class NativeBrowserViewViews : public NativeBrowserView {
|
||||
public:
|
||||
explicit NativeBrowserViewViews(
|
||||
InspectableWebContents* inspectable_web_contents);
|
||||
~NativeBrowserViewViews() override;
|
||||
|
||||
void SetAutoResizeProportions(const gfx::Size& window_size);
|
||||
void AutoResize(const gfx::Rect& new_window,
|
||||
int width_delta,
|
||||
int height_delta);
|
||||
uint8_t GetAutoResizeFlags() { return auto_resize_flags_; }
|
||||
|
||||
// NativeBrowserView:
|
||||
void SetAutoResizeFlags(uint8_t flags) override;
|
||||
void SetBounds(const gfx::Rect& bounds) override;
|
||||
void SetBackgroundColor(SkColor color) override;
|
||||
|
||||
private:
|
||||
void ResetAutoResizeProportions();
|
||||
|
||||
uint8_t auto_resize_flags_ = 0;
|
||||
|
||||
bool auto_horizontal_proportion_set_ = false;
|
||||
float auto_horizontal_proportion_width_ = 0.;
|
||||
float auto_horizontal_proportion_left_ = 0.;
|
||||
|
||||
bool auto_vertical_proportion_set_ = false;
|
||||
float auto_vertical_proportion_height_ = 0.;
|
||||
float auto_vertical_proportion_top_ = 0.;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(NativeBrowserViewViews);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_NATIVE_BROWSER_VIEW_VIEWS_H_
|
Loading…
Add table
Add a link
Reference in a new issue