clang-format atom files
This commit is contained in:
parent
717f55b012
commit
53bdf22c85
128 changed files with 771 additions and 753 deletions
|
@ -19,10 +19,9 @@ class AtomDesktopNativeWidgetAura : public views::DesktopNativeWidgetAura {
|
|||
void Activate() override;
|
||||
|
||||
private:
|
||||
void OnWindowActivated(
|
||||
wm::ActivationChangeObserver::ActivationReason reason,
|
||||
aura::Window* gained_active,
|
||||
aura::Window* lost_active) override;
|
||||
void OnWindowActivated(wm::ActivationChangeObserver::ActivationReason reason,
|
||||
aura::Window* gained_active,
|
||||
aura::Window* lost_active) override;
|
||||
DISALLOW_COPY_AND_ASSIGN(AtomDesktopNativeWidgetAura);
|
||||
};
|
||||
|
||||
|
|
|
@ -25,8 +25,10 @@ class AtomDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin {
|
|||
~AtomDesktopWindowTreeHostWin() override;
|
||||
|
||||
protected:
|
||||
bool PreHandleMSG(
|
||||
UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result) override;
|
||||
bool PreHandleMSG(UINT message,
|
||||
WPARAM w_param,
|
||||
LPARAM l_param,
|
||||
LRESULT* result) override;
|
||||
bool HasNativeFrame() const override;
|
||||
|
||||
private:
|
||||
|
|
|
@ -98,7 +98,7 @@ class JumpList {
|
|||
JumpListResult AppendCategory(const JumpListCategory& category);
|
||||
// Appends categories to the custom Jump List.
|
||||
JumpListResult AppendCategories(
|
||||
const std::vector<JumpListCategory>& categories);
|
||||
const std::vector<JumpListCategory>& categories);
|
||||
|
||||
private:
|
||||
base::string16 app_id_;
|
||||
|
|
|
@ -17,8 +17,10 @@ class MessageHandlerDelegate {
|
|||
// message was consumed by the delegate and should not be processed further
|
||||
// by the HWNDMessageHandler. In this case, |result| is returned. |result| is
|
||||
// not modified otherwise.
|
||||
virtual bool PreHandleMSG(
|
||||
UINT message, WPARAM w_param, LPARAM l_param, LRESULT* result);
|
||||
virtual bool PreHandleMSG(UINT message,
|
||||
WPARAM w_param,
|
||||
LPARAM l_param,
|
||||
LRESULT* result);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
|
|
@ -27,11 +27,15 @@ class NotifyIconHost {
|
|||
typedef std::vector<NotifyIcon*> NotifyIcons;
|
||||
|
||||
// Static callback invoked when a message comes in to our messaging window.
|
||||
static LRESULT CALLBACK
|
||||
WndProcStatic(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
|
||||
static LRESULT CALLBACK WndProcStatic(HWND hwnd,
|
||||
UINT message,
|
||||
WPARAM wparam,
|
||||
LPARAM lparam);
|
||||
|
||||
LRESULT CALLBACK
|
||||
WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
|
||||
LRESULT CALLBACK WndProc(HWND hwnd,
|
||||
UINT message,
|
||||
WPARAM wparam,
|
||||
LPARAM lparam);
|
||||
|
||||
UINT NextIconId();
|
||||
|
||||
|
|
|
@ -32,18 +32,20 @@ class TaskbarHost {
|
|||
virtual ~TaskbarHost();
|
||||
|
||||
// Add or update the buttons in thumbar.
|
||||
bool SetThumbarButtons(
|
||||
HWND window, const std::vector<ThumbarButton>& buttons);
|
||||
bool SetThumbarButtons(HWND window,
|
||||
const std::vector<ThumbarButton>& buttons);
|
||||
|
||||
void RestoreThumbarButtons(HWND window);
|
||||
|
||||
// Set the progress state in taskbar.
|
||||
bool SetProgressBar(
|
||||
HWND window, double value, const NativeWindow::ProgressState state);
|
||||
bool SetProgressBar(HWND window,
|
||||
double value,
|
||||
const NativeWindow::ProgressState state);
|
||||
|
||||
// Set the overlay icon in taskbar.
|
||||
bool SetOverlayIcon(
|
||||
HWND window, const gfx::Image& overlay, const std::string& text);
|
||||
bool SetOverlayIcon(HWND window,
|
||||
const gfx::Image& overlay,
|
||||
const std::string& text);
|
||||
|
||||
// Set the region of the window to show as a thumbnail in taskbar.
|
||||
bool SetThumbnailClip(HWND window, const gfx::Rect& region);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue