refactor: simplify some BaseWindow
JS getters (#46564)
* refactor: return a std::array<int 2> from BaseWindow::GetMaximumSize() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: return a std::array<int 2> from BaseWindow::GetMinimumSize() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: return a std::array<int 2> from BaseWindow::GetPosition() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: return a std::array<int 2> from BaseWindow::GetSize() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: return a std::array<int 2> from BaseWindow::GetContentSize() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: extract helper method ToArray(const gfx::Size) Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: #include correctness Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
7886cc3cd0
commit
a2f3d820cb
3 changed files with 25 additions and 35 deletions
|
@ -5,6 +5,7 @@
|
|||
#ifndef ELECTRON_SHELL_COMMON_GIN_CONVERTERS_STD_CONVERTER_H_
|
||||
#define ELECTRON_SHELL_COMMON_GIN_CONVERTERS_STD_CONVERTER_H_
|
||||
|
||||
#include <array>
|
||||
#include <cstddef>
|
||||
#include <functional>
|
||||
#include <map>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue