OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/sessions/session_service.h" | 7 #include "chrome/browser/sessions/session_service.h" |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 GetWindow(payload.id, windows)->type = | 903 GetWindow(payload.id, windows)->type = |
904 BrowserTypeForWindowType( | 904 BrowserTypeForWindowType( |
905 static_cast<WindowType>(payload.index)); | 905 static_cast<WindowType>(payload.index)); |
906 break; | 906 break; |
907 } | 907 } |
908 | 908 |
909 case kCommandSetPinnedState: { | 909 case kCommandSetPinnedState: { |
910 PinnedStatePayload payload; | 910 PinnedStatePayload payload; |
911 if (!command->GetPayload(&payload, sizeof(payload))) | 911 if (!command->GetPayload(&payload, sizeof(payload))) |
912 return true; | 912 return true; |
| 913 #if defined(ENABLE_PINNED_TABS) |
913 GetTab(payload.tab_id, tabs)->pinned = payload.pinned_state; | 914 GetTab(payload.tab_id, tabs)->pinned = payload.pinned_state; |
| 915 #endif |
914 break; | 916 break; |
915 } | 917 } |
916 | 918 |
917 default: | 919 default: |
918 return true; | 920 return true; |
919 } | 921 } |
920 } | 922 } |
921 return true; | 923 return true; |
922 } | 924 } |
923 | 925 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 return Browser::TYPE_APP; | 1198 return Browser::TYPE_APP; |
1197 case TYPE_APP_POPUP: | 1199 case TYPE_APP_POPUP: |
1198 return Browser::TYPE_APP_POPUP; | 1200 return Browser::TYPE_APP_POPUP; |
1199 case TYPE_DEVTOOLS: | 1201 case TYPE_DEVTOOLS: |
1200 return Browser::TYPE_DEVTOOLS; | 1202 return Browser::TYPE_DEVTOOLS; |
1201 case TYPE_NORMAL: | 1203 case TYPE_NORMAL: |
1202 default: | 1204 default: |
1203 return Browser::TYPE_NORMAL; | 1205 return Browser::TYPE_NORMAL; |
1204 } | 1206 } |
1205 } | 1207 } |
OLD | NEW |