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

Side by Side Diff: chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h

Issue 2282023002: arc: Support window recreation. (Closed)
Patch Set: rebase + nits Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const std::string& app_shelf_id() const { return app_shelf_id_; } 45 const std::string& app_shelf_id() const { return app_shelf_id_; }
46 46
47 // LauncherItemController overrides: 47 // LauncherItemController overrides:
48 bool IsOpen() const override; 48 bool IsOpen() const override;
49 bool IsVisible() const override; 49 bool IsVisible() const override;
50 void Launch(ash::LaunchSource source, int event_flags) override; 50 void Launch(ash::LaunchSource source, int event_flags) override;
51 ash::ShelfItemDelegate::PerformedAction Activate( 51 ash::ShelfItemDelegate::PerformedAction Activate(
52 ash::LaunchSource source) override; 52 ash::LaunchSource source) override;
53 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override; 53 ChromeLauncherAppMenuItems GetApplicationList(int event_flags) override;
54 ash::ShelfItemDelegate::PerformedAction ItemSelected( 54 ash::ShelfItemDelegate::PerformedAction ItemSelected(
55 const ui::Event& eent) override; 55 const ui::Event& event) override;
56 base::string16 GetTitle() override; 56 base::string16 GetTitle() override;
57 bool IsDraggable() override; 57 bool IsDraggable() override;
58 bool CanPin() const override; 58 bool CanPin() const override;
59 bool ShouldShowTooltip() override; 59 bool ShouldShowTooltip() override;
60 void Close() override; 60 void Close() override;
61 61
62 // aura::WindowObserver overrides: 62 // aura::WindowObserver overrides:
63 void OnWindowPropertyChanged(aura::Window* window, 63 void OnWindowPropertyChanged(aura::Window* window,
64 const void* key, 64 const void* key,
65 intptr_t old) override; 65 intptr_t old) override;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // AppLauncherItemController for each |app_shelf_id_|. 106 // AppLauncherItemController for each |app_shelf_id_|.
107 const std::string app_shelf_id_; 107 const std::string app_shelf_id_;
108 108
109 // Scoped list of observed windows (for removal on destruction) 109 // Scoped list of observed windows (for removal on destruction)
110 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_; 110 ScopedObserver<aura::Window, aura::WindowObserver> observed_windows_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherItemController); 112 DISALLOW_COPY_AND_ASSIGN(AppWindowLauncherItemController);
113 }; 113 };
114 114
115 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_ 115 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_APP_WINDOW_LAUNCHER_ITEM_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_utils.cc ('k') | chrome/browser/ui/ash/launcher/arc_app_window_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698