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

Side by Side Diff: chrome/browser/extensions/api/sessions/sessions_api.cc

Issue 2652043004: Remove persisted docked windows (Closed)
Patch Set: varkha's comments Created 3 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/extensions/api/sessions/sessions_api.h" 5 #include "chrome/browser/extensions/api/sessions/sessions_api.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 type = windows::WINDOW_TYPE_NORMAL; 268 type = windows::WINDOW_TYPE_NORMAL;
269 break; 269 break;
270 case sessions::SessionWindow::TYPE_POPUP: 270 case sessions::SessionWindow::TYPE_POPUP:
271 type = windows::WINDOW_TYPE_POPUP; 271 type = windows::WINDOW_TYPE_POPUP;
272 break; 272 break;
273 } 273 }
274 274
275 windows::WindowState state = windows::WINDOW_STATE_NONE; 275 windows::WindowState state = windows::WINDOW_STATE_NONE;
276 switch (window.show_state) { 276 switch (window.show_state) {
277 case ui::SHOW_STATE_NORMAL: 277 case ui::SHOW_STATE_NORMAL:
278
279 // TODO(afakhry): Remove Docked Windows in M58.
278 case ui::SHOW_STATE_DOCKED: 280 case ui::SHOW_STATE_DOCKED:
279 state = windows::WINDOW_STATE_NORMAL; 281 state = windows::WINDOW_STATE_NORMAL;
280 break; 282 break;
281 case ui::SHOW_STATE_MINIMIZED: 283 case ui::SHOW_STATE_MINIMIZED:
282 state = windows::WINDOW_STATE_MINIMIZED; 284 state = windows::WINDOW_STATE_MINIMIZED;
283 break; 285 break;
284 case ui::SHOW_STATE_MAXIMIZED: 286 case ui::SHOW_STATE_MAXIMIZED:
285 state = windows::WINDOW_STATE_MAXIMIZED; 287 state = windows::WINDOW_STATE_MAXIMIZED;
286 break; 288 break;
287 case ui::SHOW_STATE_FULLSCREEN: 289 case ui::SHOW_STATE_FULLSCREEN:
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 return g_factory.Pointer(); 604 return g_factory.Pointer();
603 } 605 }
604 606
605 void SessionsAPI::OnListenerAdded(const EventListenerInfo& details) { 607 void SessionsAPI::OnListenerAdded(const EventListenerInfo& details) {
606 sessions_event_router_.reset( 608 sessions_event_router_.reset(
607 new SessionsEventRouter(Profile::FromBrowserContext(browser_context_))); 609 new SessionsEventRouter(Profile::FromBrowserContext(browser_context_)));
608 EventRouter::Get(browser_context_)->UnregisterObserver(this); 610 EventRouter::Get(browser_context_)->UnregisterObserver(this);
609 } 611 }
610 612
611 } // namespace extensions 613 } // namespace extensions
OLDNEW
« no previous file with comments | « ash/common/wm/wm_types.cc ('k') | chrome/browser/ui/views/apps/chrome_native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698