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

Side by Side Diff: webkit/glue/webkitclient_impl.cc

Issue 519030: bsds: views/ and webkit/ support for FreeBSD/OpenBSD (Closed)
Patch Set: Created 10 years, 11 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 (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include "webkit/glue/webkitclient_impl.h" 5 #include "webkit/glue/webkitclient_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 { "searchMagnifier", IDR_SEARCH_MAGNIFIER }, 201 { "searchMagnifier", IDR_SEARCH_MAGNIFIER },
202 { "searchMagnifierResults", IDR_SEARCH_MAGNIFIER_RESULTS }, 202 { "searchMagnifierResults", IDR_SEARCH_MAGNIFIER_RESULTS },
203 { "mediaPlay", IDR_MEDIA_PLAY_BUTTON }, 203 { "mediaPlay", IDR_MEDIA_PLAY_BUTTON },
204 { "mediaPlayDisabled", IDR_MEDIA_PLAY_BUTTON_DISABLED }, 204 { "mediaPlayDisabled", IDR_MEDIA_PLAY_BUTTON_DISABLED },
205 { "mediaPause", IDR_MEDIA_PAUSE_BUTTON }, 205 { "mediaPause", IDR_MEDIA_PAUSE_BUTTON },
206 { "mediaSoundFull", IDR_MEDIA_SOUND_FULL_BUTTON }, 206 { "mediaSoundFull", IDR_MEDIA_SOUND_FULL_BUTTON },
207 { "mediaSoundNone", IDR_MEDIA_SOUND_NONE_BUTTON }, 207 { "mediaSoundNone", IDR_MEDIA_SOUND_NONE_BUTTON },
208 { "mediaSoundDisabled", IDR_MEDIA_SOUND_DISABLED }, 208 { "mediaSoundDisabled", IDR_MEDIA_SOUND_DISABLED },
209 { "mediaSliderThumb", IDR_MEDIA_SLIDER_THUMB }, 209 { "mediaSliderThumb", IDR_MEDIA_SLIDER_THUMB },
210 { "mediaVolumeSliderThumb", IDR_MEDIA_VOLUME_SLIDER_THUMB }, 210 { "mediaVolumeSliderThumb", IDR_MEDIA_VOLUME_SLIDER_THUMB },
211 #if defined(OS_LINUX) 211 #if defined(OS_POSIX) && !defined(OS_MACOSX)
212 // TODO(port): rename these to "skia" instead of "Linux".
212 { "linuxCheckboxOff", IDR_LINUX_CHECKBOX_OFF }, 213 { "linuxCheckboxOff", IDR_LINUX_CHECKBOX_OFF },
213 { "linuxCheckboxOn", IDR_LINUX_CHECKBOX_ON }, 214 { "linuxCheckboxOn", IDR_LINUX_CHECKBOX_ON },
214 { "linuxCheckboxDisabledOff", IDR_LINUX_CHECKBOX_DISABLED_OFF }, 215 { "linuxCheckboxDisabledOff", IDR_LINUX_CHECKBOX_DISABLED_OFF },
215 { "linuxCheckboxDisabledOn", IDR_LINUX_CHECKBOX_DISABLED_ON }, 216 { "linuxCheckboxDisabledOn", IDR_LINUX_CHECKBOX_DISABLED_ON },
216 { "linuxRadioOff", IDR_LINUX_RADIO_OFF }, 217 { "linuxRadioOff", IDR_LINUX_RADIO_OFF },
217 { "linuxRadioOn", IDR_LINUX_RADIO_ON }, 218 { "linuxRadioOn", IDR_LINUX_RADIO_ON },
218 { "linuxRadioDisabledOff", IDR_LINUX_RADIO_DISABLED_OFF }, 219 { "linuxRadioDisabledOff", IDR_LINUX_RADIO_DISABLED_OFF },
219 { "linuxRadioDisabledOn", IDR_LINUX_RADIO_DISABLED_ON }, 220 { "linuxRadioDisabledOn", IDR_LINUX_RADIO_DISABLED_ON },
220 #endif 221 #endif
221 }; 222 };
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 bool WebKitClientImpl::isDirectory(const WebKit::WebString& path) { 389 bool WebKitClientImpl::isDirectory(const WebKit::WebString& path) {
389 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); 390 FilePath file_path(webkit_glue::WebStringToFilePathString(path));
390 return file_util::DirectoryExists(file_path); 391 return file_util::DirectoryExists(file_path);
391 } 392 }
392 393
393 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { 394 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) {
394 return net::FilePathToFileURL(webkit_glue::WebStringToFilePath(path)); 395 return net::FilePathToFileURL(webkit_glue::WebStringToFilePath(path));
395 } 396 }
396 397
397 } // namespace webkit_glue 398 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698