| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "chrome/browser/ui/cocoa/keyword_editor_cocoa_controller.h" | 7 #import "chrome/browser/ui/cocoa/keyword_editor_cocoa_controller.h" |
| 8 | 8 |
| 9 #import "base/mac_util.h" | 9 #import "base/mac_util.h" |
| 10 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| 11 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
| 12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
| 14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/search_engines/template_url_model.h" | 15 #include "chrome/browser/search_engines/template_url_model.h" |
| 16 #include "chrome/browser/search_engines/template_url_table_model.h" | 16 #include "chrome/browser/search_engines/template_url_table_model.h" |
| 17 #import "chrome/browser/ui/cocoa/edit_search_engine_cocoa_controller.h" | 17 #import "chrome/browser/ui/cocoa/edit_search_engine_cocoa_controller.h" |
| 18 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" | 18 #import "chrome/browser/ui/cocoa/window_size_autosaver.h" |
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "skia/ext/skia_utils_mac.h" | 21 #include "skia/ext/skia_utils_mac.h" |
| 22 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" | 22 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" |
| 23 #include "third_party/skia/include/core/SkBitmap.h" | 23 #include "third_party/skia/include/core/SkBitmap.h" |
| 24 | 24 |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 controller_->table_model()->last_search_engine_index() + 1; | 413 controller_->table_model()->last_search_engine_index() + 1; |
| 414 DCHECK_NE(row, otherGroupId); | 414 DCHECK_NE(row, otherGroupId); |
| 415 if (row >= otherGroupId) { | 415 if (row >= otherGroupId) { |
| 416 return row - 2; // Other group. | 416 return row - 2; // Other group. |
| 417 } else { | 417 } else { |
| 418 return row - 1; // Default group. | 418 return row - 1; // Default group. |
| 419 } | 419 } |
| 420 } | 420 } |
| 421 | 421 |
| 422 @end | 422 @end |
| OLD | NEW |