Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Side by Side Diff: ash/shell.h

Issue 1151133003: Added an ActivationReason parameter to ActivationChangeObserver::OnWindowActivated(...). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uploaded diff based on dependant CL. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shelf/shelf_window_watcher.cc ('k') | ash/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 bool CanWindowReceiveEvents(aura::Window* window) override; 610 bool CanWindowReceiveEvents(aura::Window* window) override;
611 611
612 // Overridden from ui::EventTarget: 612 // Overridden from ui::EventTarget:
613 bool CanAcceptEvent(const ui::Event& event) override; 613 bool CanAcceptEvent(const ui::Event& event) override;
614 EventTarget* GetParentTarget() override; 614 EventTarget* GetParentTarget() override;
615 scoped_ptr<ui::EventTargetIterator> GetChildIterator() const override; 615 scoped_ptr<ui::EventTargetIterator> GetChildIterator() const override;
616 ui::EventTargeter* GetEventTargeter() override; 616 ui::EventTargeter* GetEventTargeter() override;
617 void OnEvent(ui::Event* event) override; 617 void OnEvent(ui::Event* event) override;
618 618
619 // Overridden from aura::client::ActivationChangeObserver: 619 // Overridden from aura::client::ActivationChangeObserver:
620 void OnWindowActivated(aura::Window* gained_active, 620 void OnWindowActivated(
621 aura::Window* lost_active) override; 621 aura::client::ActivationChangeObserver::ActivationReason reason,
622 aura::Window* gained_active,
623 aura::Window* lost_active) override;
622 624
623 static Shell* instance_; 625 static Shell* instance_;
624 626
625 // If set before the Shell is initialized, the mouse cursor will be hidden 627 // If set before the Shell is initialized, the mouse cursor will be hidden
626 // when the screen is initially created. 628 // when the screen is initially created.
627 static bool initially_hide_cursor_; 629 static bool initially_hide_cursor_;
628 630
629 // When no explicit target display/RootWindow is given, new windows are 631 // When no explicit target display/RootWindow is given, new windows are
630 // created on |scoped_target_root_window_| , unless NULL in 632 // created on |scoped_target_root_window_| , unless NULL in
631 // which case they are created on |target_root_window_|. 633 // which case they are created on |target_root_window_|.
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 768
767 // Injected content::GPUDataManager support. 769 // Injected content::GPUDataManager support.
768 scoped_ptr<GPUSupport> gpu_support_; 770 scoped_ptr<GPUSupport> gpu_support_;
769 771
770 DISALLOW_COPY_AND_ASSIGN(Shell); 772 DISALLOW_COPY_AND_ASSIGN(Shell);
771 }; 773 };
772 774
773 } // namespace ash 775 } // namespace ash
774 776
775 #endif // ASH_SHELL_H_ 777 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_window_watcher.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698